Class: Kumi::Core::NAST::Ref
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Attributes inherited from Node
Instance Method Summary collapse
- #accept(visitor) ⇒ Object
-
#initialize(name:, **k) ⇒ Ref
constructor
A new instance of Ref.
Methods inherited from Node
Constructor Details
#initialize(name:, **k) ⇒ Ref
Returns a new instance of Ref.
67 68 69 70 |
# File 'lib/kumi/core/nast.rb', line 67 def initialize(name:, **k) super(**k) @name = name.to_sym end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
65 66 67 |
# File 'lib/kumi/core/nast.rb', line 65 def name @name end |
Instance Method Details
#accept(visitor) ⇒ Object
72 73 74 |
# File 'lib/kumi/core/nast.rb', line 72 def accept(visitor) visitor.visit_ref(self) end |