Class: Gloo::Core::Literal

Inherits:
Object
  • Object
show all
Defined in:
lib/gloo/core/literal.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#valueObject (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