Method: RBelly::JS::FunctionPrototype#initialize
- Defined in:
- lib/rbelly/js/function_prototype.rb
#initialize(function) ⇒ FunctionPrototype
Returns a new instance of FunctionPrototype.
6 7 8 9 10 11 |
# File 'lib/rbelly/js/function_prototype.rb', line 6 def initialize(function) super() self['Class'] = 'Object' self['constructor'] = function self['arguments'].value = nil end |