Class: Luoma::Name
- Inherits:
-
Object
- Object
- Luoma::Name
- Defined in:
- lib/luoma/expression.rb,
sig/luoma/expression.rbs
Instance Attribute Summary collapse
-
#span ⇒ t_token
readonly
Returns the value of attribute span.
-
#token ⇒ t_token
readonly
Returns the value of attribute token.
-
#value ⇒ String
readonly
Returns the value of attribute value.
Instance Method Summary collapse
-
#children ⇒ ::Array[Luoma::_Traversable]
() -> Array.
-
#evaluate(context) ⇒ Object
(RenderContext) -> untyped.
-
#initialize(token, value) ⇒ Name
constructor
(t_token, String) -> void.
-
#to_s ⇒ String
() -> String.
Constructor Details
#initialize(token, value) ⇒ Name
(t_token, String) -> void
1057 1058 1059 1060 1061 |
# File 'lib/luoma/expression.rb', line 1057 def initialize(token, value) @token = token @value = value @span = token end |
Instance Attribute Details
#span ⇒ t_token (readonly)
Returns the value of attribute span.
1054 1055 1056 |
# File 'lib/luoma/expression.rb', line 1054 def span @span end |
#token ⇒ t_token (readonly)
Returns the value of attribute token.
1054 1055 1056 |
# File 'lib/luoma/expression.rb', line 1054 def token @token end |
#value ⇒ String (readonly)
Returns the value of attribute value.
1054 1055 1056 |
# File 'lib/luoma/expression.rb', line 1054 def value @value end |
Instance Method Details
#children ⇒ ::Array[Luoma::_Traversable]
() -> Array
408 409 410 |
# File 'sig/luoma/expression.rbs', line 408 def children [] end |
#evaluate(context) ⇒ Object
(RenderContext) -> untyped
1064 1065 1066 |
# File 'lib/luoma/expression.rb', line 1064 def evaluate(context) @value end |
#to_s ⇒ String
() -> String
1073 1074 1075 |
# File 'lib/luoma/expression.rb', line 1073 def to_s @value end |