Class: Luoma::FloatLiteral
- Inherits:
-
Expression
- Object
- Expression
- Luoma::FloatLiteral
- Defined in:
- lib/luoma/expression.rb,
sig/luoma/expression.rbs
Instance Attribute Summary collapse
-
#value ⇒ Float
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) ⇒ FloatLiteral
constructor
(t_token, Float).
-
#to_s ⇒ String
() -> String.
Methods inherited from Expression
Constructor Details
#initialize(token, value) ⇒ FloatLiteral
(t_token, Float)
815 816 817 818 |
# File 'lib/luoma/expression.rb', line 815 def initialize(token, value) super(token) @value = value end |
Instance Attribute Details
#value ⇒ Float (readonly)
Returns the value of attribute value.
812 813 814 |
# File 'lib/luoma/expression.rb', line 812 def value @value end |
Instance Method Details
#children ⇒ ::Array[_Traversable]
() -> Array
268 269 270 |
# File 'sig/luoma/expression.rbs', line 268 def children [] end |
#evaluate(context) ⇒ Object
(RenderContext) -> untyped
821 822 823 |
# File 'lib/luoma/expression.rb', line 821 def evaluate(context) @value end |
#to_s ⇒ String
() -> String
830 831 832 |
# File 'lib/luoma/expression.rb', line 830 def to_s @value.to_s end |