Class: CommonJS::Module::Native
- Inherits:
-
Object
- Object
- CommonJS::Module::Native
- Defined in:
- lib/commonjs/module.rb
Instance Attribute Summary collapse
-
#exports ⇒ Object
readonly
Returns the value of attribute exports.
Instance Method Summary collapse
-
#initialize(impl) ⇒ Native
constructor
A new instance of Native.
Constructor Details
#initialize(impl) ⇒ Native
Returns a new instance of Native.
44 45 46 |
# File 'lib/commonjs/module.rb', line 44 def initialize(impl) @exports = impl end |
Instance Attribute Details
#exports ⇒ Object (readonly)
Returns the value of attribute exports.
42 43 44 |
# File 'lib/commonjs/module.rb', line 42 def exports @exports end |