Class: Gloo::Core::Literal
- Inherits:
-
Object
- Object
- Gloo::Core::Literal
- Defined in:
- lib/gloo/core/literal.rb
Direct Known Subclasses
Expr::LBoolean, Expr::LDecimal, Expr::LInteger, Expr::LString
Instance Attribute Summary collapse
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Instance Method Summary collapse
-
#initialize(value) ⇒ Literal
constructor
Create the expression from a list of tokens.
-
#set_value(value) ⇒ Object
Set the literal value.
Constructor Details
#initialize(value) ⇒ Literal
Create the expression from a list of tokens.
17 18 19 |
# File 'lib/gloo/core/literal.rb', line 17 def initialize( value ) set_value( value ) end |
Instance Attribute Details
#value ⇒ Object (readonly)
Returns the value of attribute value.
12 13 14 |
# File 'lib/gloo/core/literal.rb', line 12 def value @value end |
Instance Method Details
#set_value(value) ⇒ Object
Set the literal value.
24 25 26 |
# File 'lib/gloo/core/literal.rb', line 24 def set_value( value ) @value = value end |