Abstract base class for all AST nodes
Factory method to create an Nodes::And node.
# File lib/arel/nodes/node.rb, line 15
15: def and right
16: Nodes::And.new self, right
17: end
Factory method to create a Nodes::Grouping node that has an Nodes::Or node as a child.
# File lib/arel/nodes/node.rb, line 9
9: def or right
10: Nodes::Grouping.new Nodes::Or.new(self, right)
11: end
FIXME: this method should go away. I don’t like people calling to_sql on non-head nodes. This forces us to walk the AST until we can find a node that has a “relation” member.
Maybe we should just use `Table.engine`? :’(
# File lib/arel/nodes/node.rb, line 24
24: def to_sql engine = Table.engine
25: viz = Visitors.for engine
26: viz.accept self
27: end
Disabled; run with --debug to generate this.
Generated with the Darkfish Rdoc Generator 1.1.6.