Class: JavaScript::GlobalObject

Inherits:
Object show all
Defined in:
lib/javascript.rb

Instance Method Summary collapse

Methods inherited from Object

#!=, #==, #===, #[], #[]=, #__defined__?, #__hash__, #__proto__

Constructor Details

#initializeGlobalObject

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