Class: Arel::TreeManager
- Includes:
- FactoryMethods
- Defined in:
- activerecord/lib/arel/tree_manager.rb
Direct Known Subclasses
Defined Under Namespace
Modules: StatementMethods
Instance Attribute Summary collapse
-
#ast ⇒ Object
readonly
Returns the value of attribute ast.
Instance Method Summary collapse
Methods included from FactoryMethods
#coalesce, #create_and, #create_false, #create_join, #create_on, #create_string_join, #create_table_alias, #create_true, #grouping, #lower
Instance Attribute Details
#ast ⇒ Object (readonly)
Returns the value of attribute ast
41 42 43 |
# File 'activerecord/lib/arel/tree_manager.rb', line 41 def ast @ast end |
Instance Method Details
#initialize_copy(other) ⇒ Object
55 56 57 58 |
# File 'activerecord/lib/arel/tree_manager.rb', line 55 def initialize_copy(other) super @ast = @ast.clone end |
#to_dot ⇒ Object
43 44 45 46 47 |
# File 'activerecord/lib/arel/tree_manager.rb', line 43 def to_dot collector = Arel::Collectors::PlainString.new collector = Visitors::Dot.new.accept @ast, collector collector.value end |