Class: Quo::ComposedRelationBackedQuery
- Inherits:
-
Object
- Object
- Quo::ComposedRelationBackedQuery
- Includes:
- ComposedInstance
- Defined in:
- lib/quo/composed_relation_backed_query.rb,
sig/generated/quo/composed_relation_backed_query.rbs
Instance Method Summary collapse
Methods included from ComposedInstance
#apply_to_operand, #both_relations?, #copy, #fan_override, #is_relation?, #left_enumerable_right_relation?, #left_relation_right_enumerable?, #merge_active_record_relations, #merge_left_and_right, #operand_accepts?, #own_property_names, #unwrap_operand
Instance Method Details
#inspect ⇒ void
This method returns an undefined value.
23 24 25 |
# File 'lib/quo/composed_relation_backed_query.rb', line 23 def inspect "#{self.class.name}[#{operand_desc(left)}, #{operand_desc(right)}]" end |
#operand_desc(operand) ⇒ String
31 32 33 34 35 36 37 38 39 40 |
# File 'lib/quo/composed_relation_backed_query.rb', line 31 def operand_desc(operand) case operand when Quo::Query operand.class.name || "(anonymous Quo::Query)" when ::ActiveRecord::Relation operand.klass.name else operand.class.name || "(anonymous)" end end |
#query ⇒ void
This method returns an undefined value.
18 19 20 |
# File 'lib/quo/composed_relation_backed_query.rb', line 18 def query merge_left_and_right end |