class JSCObject

Overview

A JSCObject represent a JavaScript object

Included Modules

Defined in:

components/jsc_object.cr
components/jsc_object/accessor.cr

Constructors

Instance Method Summary

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

def self.new #

Initializes a new JSCObject


[View source]

Instance Method Detail

def define_property(name, value, flags : Accessor::Accessibility) #

Defines a JavaScript object's property, this is equal to JavaScript Object.defineProperty.


[View source]
def finalize #

[View source]
def mount_accessor(accessor : Accessor) #

Defines a JavaScript object's property, this is equal to JavaScript Object.defineProperty. See Accessor for more.


[View source]
def properties #

Enumerates all properties of this JSCObject.


[View source]