Class: Module

Inherits:
Object show all
Defined in:
/Users/elia/Code/opal-docs/opal/stdlib/native.rb

Instance Method Summary collapse

Instance Method Details

#native_moduleObject

Public: Exposes the current module as a property of the global object (e.g. window).


602
603
604
# File '/Users/elia/Code/opal-docs/opal/stdlib/native.rb', line 602

def native_module
  `Opal.global[#{self.name}] = #{self}`
end