Class: Module

Inherits:
Object show all
Defined in:
opal/stdlib/native.rb

Instance Method Summary collapse

Instance Method Details

#native_moduleObject

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


601
602
603
# File 'opal/stdlib/native.rb', line 601

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