struct Protocol::Runtime::PropertyDescriptor

Overview

Object property descriptor.

Included Modules

Defined in:

protocol/runtime.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(pull : JSON::PullParser) #

[View source]

Instance Method Detail

def configurable : Bool #

True if the type of this property descriptor may be changed and if the property may be deleted from the corresponding object.


[View source]
def enumerable : Bool #

True if this property shows up during enumeration of the properties on the corresponding object.


[View source]
def get : RemoteObject | Nil #

A function which serves as a getter for the property, or undefined if there is no getter (accessor descriptors only).


[View source]
def is_own : Bool | Nil #

True if the property is owned for the object.


[View source]
def name : String #

Property name or symbol description.


[View source]
def set : RemoteObject | Nil #

A function which serves as a setter for the property, or undefined if there is no setter (accessor descriptors only).


[View source]
def symbol : RemoteObject | Nil #

Property symbol object, if the property is of the #symbol type.


[View source]
def value : RemoteObject | Nil #

The value associated with the property.


[View source]
def was_thrown : Bool | Nil #

True if the result was thrown during the evaluation.


[View source]
def writable : Bool | Nil #

True if the value associated with the property may be changed (data descriptors only).


[View source]