Class: JavaScript::GlobalObject
- Inherits:
-
Object
- Object
- BlankObject
- Object
- JavaScript::GlobalObject
- Defined in:
- lib/javascript.rb
Instance Method Summary collapse
-
#initialize ⇒ GlobalObject
constructor
A new instance of GlobalObject.
Methods inherited from Object
#!=, #==, #===, #[], #[]=, #__defined__?, #__hash__, #__proto__
Constructor Details
#initialize ⇒ GlobalObject
Returns a new instance of GlobalObject.
112 113 114 115 |
# File 'lib/javascript.rb', line 112 def initialize super @hash[:console] = Console.new end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class JavaScript::Object