Class: AdvancedSearch::AST::Value
- Defined in:
- lib/advanced_search/ast/value.rb
Instance Attribute Summary collapse
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Attributes inherited from Base
Instance Method Summary collapse
- #accept(visitor) ⇒ Object
-
#initialize(value) ⇒ Value
constructor
A new instance of Value.
Methods inherited from Base
Constructor Details
#initialize(value) ⇒ Value
Returns a new instance of Value.
6 7 8 |
# File 'lib/advanced_search/ast/value.rb', line 6 def initialize(value) @value = value end |
Instance Attribute Details
#value ⇒ Object (readonly)
Returns the value of attribute value.
10 11 12 |
# File 'lib/advanced_search/ast/value.rb', line 10 def value @value end |
Instance Method Details
#accept(visitor) ⇒ Object
12 13 14 |
# File 'lib/advanced_search/ast/value.rb', line 12 def accept(visitor) visitor.visit_value(self) end |