Class: Kumi::Core::NAST::Const
- Defined in:
- lib/kumi/core/nast.rb
Instance Attribute Summary collapse
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Attributes inherited from Node
Instance Method Summary collapse
- #accept(visitor) ⇒ Object
-
#initialize(value:, **k) ⇒ Const
constructor
A new instance of Const.
Constructor Details
#initialize(value:, **k) ⇒ Const
Returns a new instance of Const.
32 33 34 35 |
# File 'lib/kumi/core/nast.rb', line 32 def initialize(value:, **k) super(**k) @value = value end |
Instance Attribute Details
#value ⇒ Object (readonly)
Returns the value of attribute value.
30 31 32 |
# File 'lib/kumi/core/nast.rb', line 30 def value @value end |
Instance Method Details
#accept(visitor) ⇒ Object
37 38 39 |
# File 'lib/kumi/core/nast.rb', line 37 def accept(visitor) visitor.visit_const(self) end |