Class: AbstractSyntaxTreeKit::Node::MODULE
- Inherits:
-
AbstractSyntaxTreeKit::Node
- Object
- AbstractSyntaxTreeKit::Node
- AbstractSyntaxTreeKit::Node::MODULE
- Defined in:
- lib/astkit/node/module.rb
Instance Attribute Summary collapse
-
#body ⇒ Object
readonly
Returns the value of attribute body.
-
#path ⇒ Object
readonly
Returns the value of attribute path.
Attributes inherited from AbstractSyntaxTreeKit::Node
#children, #condition, #els, #first_column, #first_lineno, #last_column, #last_lineno, #type
Instance Method Summary collapse
-
#initialize(node:, path:, body:) ⇒ MODULE
constructor
A new instance of MODULE.
Constructor Details
#initialize(node:, path:, body:) ⇒ MODULE
Returns a new instance of MODULE.
6 7 8 9 10 |
# File 'lib/astkit/node/module.rb', line 6 def initialize(node:, path:, body:) super(node) @path = path @body = body end |
Instance Attribute Details
#body ⇒ Object (readonly)
Returns the value of attribute body.
4 5 6 |
# File 'lib/astkit/node/module.rb', line 4 def body @body end |
#path ⇒ Object (readonly)
Returns the value of attribute path.
4 5 6 |
# File 'lib/astkit/node/module.rb', line 4 def path @path end |