Class: V8::External
- Includes:
- Comparable, Delegated
- Defined in:
- lib/v8/external.rb,
ext/v8/v8_external.cpp
Class Method Summary collapse
-
.new(obj) ⇒ Object
Wraps given object as new v8 external.
-
.wrap(obj) ⇒ Object
Wraps given object as new v8 external.
Instance Method Summary collapse
- #<=>(other) ⇒ Object
- #delegate ⇒ Object
-
#to_obj ⇒ Object
Returns original value of wraped external.
-
#value ⇒ Object
Returns original value of wraped external.
Methods included from Delegated
#method_missing, #old_method_missing, #old_respond_to?, #respond_to?, #to_s
Methods inherited from Value
#==, #===, #array?, #ary?, #bool?, #boolean?, #date?, #empty?, #external?, #false?, #func?, #function?, #int?, #integer?, #null?, #num?, #number?, #obj?, #object?, #regex?, #regexp?, #str?, #string?, #to_boolean, #to_integer, #to_number, #to_object, #to_string, #true?, #undefined?
Methods inherited from Data
#empty?, #error?, #null?, #undefined?, #value?
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Delegated
Class Method Details
Instance Method Details
#<=>(other) ⇒ Object
8 9 10 |
# File 'lib/v8/external.rb', line 8 def <=>(other) to_obj <=> other end |
#delegate ⇒ Object
12 13 14 |
# File 'lib/v8/external.rb', line 12 def delegate to_obj end |