Class: Luoma::IndexSelector
- Inherits:
-
Expression
- Object
- Expression
- Luoma::IndexSelector
- 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[Luoma::_Traversable]
() -> Array.
-
#evaluate(context) ⇒ Object
(RenderContext) -> untyped.
-
#initialize(token, value) ⇒ IndexSelector
constructor
(t_token, Integer).
-
#to_s ⇒ String
() -> String.
- #with(token) ⇒ self
Methods inherited from Expression
Constructor Details
#initialize(token, value) ⇒ IndexSelector
(t_token, Integer)
696 697 698 699 |
# File 'lib/luoma/expression.rb', line 696 def initialize(token, value) super(token) @value = value end |
Instance Attribute Details
#value ⇒ Integer (readonly)
Returns the value of attribute value.
693 694 695 |
# File 'lib/luoma/expression.rb', line 693 def value @value end |
Instance Method Details
#children ⇒ ::Array[Luoma::_Traversable]
() -> Array
207 208 209 |
# File 'sig/luoma/expression.rbs', line 207 def children [] end |
#evaluate(context) ⇒ Object
(RenderContext) -> untyped
702 703 704 |
# File 'lib/luoma/expression.rb', line 702 def evaluate(context) @value end |
#to_s ⇒ String
() -> String
711 712 713 |
# File 'lib/luoma/expression.rb', line 711 def to_s @value.to_s end |