Class: Arel::Nodes::Binary
Do not use. This class is for internal use only.
| Relationships & Source Files | |
| Extension / Inclusion / Inheritance Descendants | |
|
Subclasses:
Addition, As, Between, BitwiseAnd, BitwiseOr, BitwiseShiftLeft, BitwiseShiftRight, BitwiseXor, Concat, Contains, Cte, Division, DoesNotMatch, Equality, Filter, GreaterThan, GreaterThanOrEqual, In, InfixOperation, IsDistinctFrom, IsNotDistinctFrom, JoinSource, LessThan, LessThanOrEqual, Matches, Multiplication, NotEqual, NotIn, NotRegexp, Over, Overlaps, Regexp, Subtraction, TableAlias, When
|
|
| Super Chains via Extension / Inclusion / Inheritance | |
|
Class Chain:
self,
NodeExpression,
Node
|
|
|
Instance Chain:
|
|
| Inherits: |
Arel::Nodes::NodeExpression
|
| Defined in: | activerecord/lib/arel/nodes/binary.rb |
Class Method Summary
- .new(left, right) ⇒ Binary constructor
Instance Attribute Summary
Instance Method Summary
-
#==(other)
Alias for #eql?.
- #eql?(other) ⇒ Boolean (also: #==)
- #hash
- #initialize_copy(other)
::Arel::Math - Included
::Arel::OrderPredications - Included
::Arel::AliasPredication - Included
::Arel::Predications - Included
::Arel::Expressions - Included
Node - Inherited
| #and | Factory method to create an And node. |
| #fetch_attribute, #invert, | |
| #not | Factory method to create a |
| #or | |
| #to_sql | FIXME: this method should go away. |
::Arel::FactoryMethods - Included
| #cast, #coalesce, #create_and, #create_false, #create_join, #create_on, #create_string_join, #create_table_alias, #create_true, #grouping, | |
| #lower | Create a LOWER() function. |
Constructor Details
.new(left, right) ⇒ Binary
Instance Attribute Details
#left (rw) Also known as: #relation
[ GitHub ]# File 'activerecord/lib/arel/nodes/binary.rb', line 6
attr_accessor :left, :right
#right (rw) Also known as: #name
[ GitHub ]# File 'activerecord/lib/arel/nodes/binary.rb', line 6
attr_accessor :left, :right
Instance Method Details
#==(other)
Alias for #eql?.
# File 'activerecord/lib/arel/nodes/binary.rb', line 29
alias :== :eql?
#eql?(other) ⇒ Boolean
Also known as: #==
#hash
[ GitHub ]# File 'activerecord/lib/arel/nodes/binary.rb', line 20
def hash [self.class, @left, @right].hash end
#initialize_copy(other)
[ GitHub ]# File 'activerecord/lib/arel/nodes/binary.rb', line 14
def initialize_copy(other) super @left = @left.clone if @left @right = @right.clone if @right end