Class: Sol::JSFunction
Instance Attribute Summary
Attributes inherited from JSObject
Instance Method Summary collapse
-
#[](*args) ⇒ Object
————————————————————————————.
-
#function? ⇒ Boolean
————————————————————————————.
-
#new(*args) ⇒ Object
———————————————————————————— Create a new object using this function as a constructor ————————————————————————————.
-
#send(*args) ⇒ Object
————————————————————————————.
-
#typeof ⇒ Object
————————————————————————————.
Methods inherited from JSObject
#array?, #assign, #boolean?, #boolean_object?, build, #initialize, #instanceof, #method_missing, #nil?, #number?, #number_object?, #object?, #string?, #string_object?, #undefined?
Constructor Details
This class inherits a constructor from Sol::JSObject
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Sol::JSObject
Instance Method Details
#[](*args) ⇒ Object
59 60 61 |
# File 'lib/jx/jsfunction.rb', line 59 def[](*args) send(*args) end |
#function? ⇒ Boolean
42 43 44 |
# File 'lib/jx/jsfunction.rb', line 42 def function? true end |
#new(*args) ⇒ Object
Create a new object using this function as a constructor
67 68 69 |
# File 'lib/jx/jsfunction.rb', line 67 def new(*args) B.rr.new_object(@jsvalue, *args) end |