Class: Rgviz::Where
- Inherits:
-
Object
- Object
- Rgviz::Where
- Defined in:
- lib/rgviz/nodes.rb
Instance Attribute Summary collapse
-
#expression ⇒ Object
Returns the value of attribute expression.
Instance Method Summary collapse
- #accept(visitor) ⇒ Object
-
#initialize(expression) ⇒ Where
constructor
A new instance of Where.
- #to_s ⇒ Object
Constructor Details
#initialize(expression) ⇒ Where
Returns a new instance of Where.
136 137 138 |
# File 'lib/rgviz/nodes.rb', line 136 def initialize(expression) @expression = expression end |
Instance Attribute Details
#expression ⇒ Object
Returns the value of attribute expression.
134 135 136 |
# File 'lib/rgviz/nodes.rb', line 134 def expression @expression end |
Instance Method Details
#accept(visitor) ⇒ Object
140 141 142 143 144 145 |
# File 'lib/rgviz/nodes.rb', line 140 def accept(visitor) if visitor.visit_where(self) expression.accept visitor end visitor.end_visit_where self end |
#to_s ⇒ Object
147 148 149 |
# File 'lib/rgviz/nodes.rb', line 147 def to_s @expression.to_s end |