Class: AdvancedSearch::AST::Value

Inherits:
Base
  • Object
show all
Defined in:
lib/advanced_search/ast/value.rb

Instance Attribute Summary collapse

Attributes inherited from Base

#edges

Instance Method Summary collapse

Methods inherited from Base

#add_edge

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

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