Class: Sol::JSUndefined

Inherits:
JSObject show all
Defined in:
lib/jx/jsundefined.rb

Instance Attribute Summary

Attributes inherited from JSObject

#jsvalue

Instance Method Summary collapse

Methods inherited from JSObject

#array?, #assign, #boolean?, #boolean_object?, build, #function?, #initialize, #instanceof, #method_missing, #nil?, #number?, #number_object?, #object?, #string?, #string_object?

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

#typeofObject





32
33
34
# File 'lib/jx/jsundefined.rb', line 32

def typeof
  B.push("undefined")
end

#undefined?Boolean



Returns:

  • (Boolean)


40
41
42
# File 'lib/jx/jsundefined.rb', line 40

def undefined?
  true
end