Class: Luoma::IntegerLiteral
- Inherits:
-
Expression
- Object
- Expression
- Luoma::IntegerLiteral
- Defined in:
- lib/luoma/expression.rb,
sig/luoma/expression.rbs
Instance Attribute Summary collapse
-
#value ⇒ Integer
readonly
Returns the value of attribute value.
Attributes inherited from Expression
Instance Method Summary collapse
-
#children ⇒ ::Array[_Traversable]
() -> Array.
-
#evaluate(context) ⇒ Object
(RenderContext) -> untyped.
-
#initialize(token, value) ⇒ IntegerLiteral
constructor
(t_token, Integer).
-
#to_s ⇒ String
() -> String.
Methods inherited from Expression
Constructor Details
#initialize(token, value) ⇒ IntegerLiteral
(t_token, Integer)
791 792 793 794 |
# File 'lib/luoma/expression.rb', line 791 def initialize(token, value) super(token) @value = value end |
Instance Attribute Details
#value ⇒ Integer (readonly)
Returns the value of attribute value.
788 789 790 |
# File 'lib/luoma/expression.rb', line 788 def value @value end |
Instance Method Details
#children ⇒ ::Array[_Traversable]
() -> Array
250 251 252 |
# File 'sig/luoma/expression.rbs', line 250 def children [] end |
#evaluate(context) ⇒ Object
(RenderContext) -> untyped
797 798 799 |
# File 'lib/luoma/expression.rb', line 797 def evaluate(context) @value end |
#to_s ⇒ String
() -> String
806 807 808 |
# File 'lib/luoma/expression.rb', line 806 def to_s @value.to_s end |