Class: Deadfire::ApplyNode
- Inherits:
-
Object
- Object
- Deadfire::ApplyNode
- Defined in:
- lib/deadfire/front_end/apply_node.rb
Instance Attribute Summary collapse
-
#mixin_names ⇒ Object
readonly
Returns the value of attribute mixin_names.
-
#node ⇒ Object
readonly
Returns the value of attribute node.
Instance Method Summary collapse
- #accept(visitor) ⇒ Object
-
#initialize(node, mixin_names) ⇒ ApplyNode
constructor
A new instance of ApplyNode.
- #lineno ⇒ Object
Constructor Details
#initialize(node, mixin_names) ⇒ ApplyNode
Returns a new instance of ApplyNode.
7 8 9 10 |
# File 'lib/deadfire/front_end/apply_node.rb', line 7 def initialize(node, mixin_names) @node = node @mixin_names = fetch_mixin_name_from(mixin_names) end |
Instance Attribute Details
#mixin_names ⇒ Object (readonly)
Returns the value of attribute mixin_names.
5 6 7 |
# File 'lib/deadfire/front_end/apply_node.rb', line 5 def mixin_names @mixin_names end |
#node ⇒ Object (readonly)
Returns the value of attribute node.
5 6 7 |
# File 'lib/deadfire/front_end/apply_node.rb', line 5 def node @node end |
Instance Method Details
#accept(visitor) ⇒ Object
12 13 14 |
# File 'lib/deadfire/front_end/apply_node.rb', line 12 def accept(visitor) visitor.visit_apply_node(self) end |
#lineno ⇒ Object
16 17 18 |
# File 'lib/deadfire/front_end/apply_node.rb', line 16 def lineno node.lineno end |