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