Class: RBelly::JS::ObjectPrototype
- Defined in:
- lib/rbelly/js/object_prototype.rb
Overview
This is the object protytpe ECMA-262 15.2.4
Direct Known Subclasses
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
-
#initialize ⇒ ObjectPrototype
constructor
A new instance of ObjectPrototype.
Methods inherited from Base
#[], #[]=, #can_put?, #default_value, #delete, #has_property?, #returned?
Constructor Details
#initialize ⇒ ObjectPrototype
Returns a new instance of ObjectPrototype.
6 7 8 9 10 11 |
# File 'lib/rbelly/js/object_prototype.rb', line 6 def initialize super self['toString'].function = unbound_method(:toString) do "[object #{self['Class'].value}]" end end |