[フレーム]

Class: Module

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

Overview

This file ended up in Opal as a port of: https://github.com/ruby/ruby2_keywords/blob/master/lib/ruby2_keywords.rb

Instance Method Summary collapse

Instance Method Details

#native_moduleObject

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

610
611
612
# File 'opal/stdlib/native.rb', line 610
def native_module
 `Opal.global[#{name}] = #{self}`
end

AltStyle によって変換されたページ (->オリジナル) /