Class: RubyRunJs::JsJson

Inherits:
JsBaseObject show all
Defined in:
lib/ruby_run_js/objects/js_json.rb

Instance Attribute Summary

Attributes inherited from JsBaseObject

#_class, #extensible, #own, #prototype, #value

Instance Method Summary collapse

Methods inherited from JsBaseObject

#_type, #can_put, #default_value, #define_own_property, #delete, #get, #get_items, #get_own_property, #get_property, #has_property, #put, #set_items

Methods included from Helper

#check_object, #get_member, #get_member_dot, #is_accessor_descriptor, #is_callable, #is_data_descriptor, #is_generic_descriptor, #is_primitive, #make_error, #strict_equality

Methods included from ConversionHelper

#convert_to_js_type, #to_boolean, #to_int32, #to_integer, #to_number, #to_object, #to_primitive, #to_string, #to_uint16, #to_uint32

Constructor Details

#initialize(prototype) ⇒ JsJson

Returns a new instance of JsJson.



7
8
9
10
11
# File 'lib/ruby_run_js/objects/js_json.rb', line 7

def initialize(prototype)
  super()
  @prototype = prototype
  @_class = 'Json'
end