Class: RubyRunJs::JsString
- Inherits:
-
JsBaseObject
- Object
- JsBaseObject
- RubyRunJs::JsString
- Defined in:
- lib/ruby_run_js/objects/js_string.rb
Instance Attribute Summary
Attributes inherited from JsBaseObject
#_class, #extensible, #own, #prototype, #value
Instance Method Summary collapse
-
#initialize(value, prototype) ⇒ JsString
constructor
A new instance of JsString.
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(value, prototype) ⇒ JsString
Returns a new instance of JsString.
7 8 9 10 11 12 |
# File 'lib/ruby_run_js/objects/js_string.rb', line 7 def initialize(value, prototype) super() @value = to_string(value) @prototype = prototype @_class = 'String' end |