class JSCObject
- JSCObject
- Reference
- Object
Overview
A JSCObject represent a JavaScript object
Included Modules
Defined in:
components/jsc_object.crcomponents/jsc_object/accessor.cr
Constructors
-
.new
Initializes a new JSCObject
Instance Method Summary
-
#define_property(name, value, flags : Accessor::Accessibility)
Defines a JavaScript object's property, this is equal to JavaScript
Object.defineProperty
. - #finalize
-
#mount_accessor(accessor : Accessor)
Defines a JavaScript object's property, this is equal to JavaScript
Object.defineProperty
. -
#properties
Enumerates all properties of this
JSCObject
.
Instance methods inherited from module Invokable
invoke(name : String, *args)
invoke
Instance methods inherited from module JSObjectUtils
[](name : String)[](index : UInt32) [], []=(name : String, value)
[]=(index : UInt32, value) []=, delete(name : String) delete, is_array? is_array?, is_bool? is_bool?, is_instance_of?(class_name : String) is_instance_of?, is_null? is_null?, is_number? is_number?, is_string? is_string?, is_undefined? is_undefined?, to_b to_b, to_f64 to_f64, to_i32 to_i32, to_s to_s
Constructor Detail
Instance Method Detail
def define_property(name, value, flags : Accessor::Accessibility)
#
Defines a JavaScript object's property, this is equal to JavaScript Object.defineProperty
.
Defines a JavaScript object's property, this is equal to JavaScript Object.defineProperty
.
See Accessor
for more.