class Arel::Nodes::Binary
Attributes
left[RW]
right[RW]
Public Class Methods
new(left, right)
click to toggle source
Calls superclass method
Arel::Nodes::Node::new
# File lib/arel/nodes/binary.rb, line 7 def initialize left, right super() @left = left @right = right end
Public Instance Methods
eql?(other)
click to toggle source
# File lib/arel/nodes/binary.rb, line 23 def eql? other self.class == other.class && self.left == other.left && self.right == other.right end
Also aliased as: ==
hash()
click to toggle source
# File lib/arel/nodes/binary.rb, line 19 def hash [self.class, @left, @right].hash end
initialize_copy(other)
click to toggle source
Calls superclass method
# File lib/arel/nodes/binary.rb, line 13 def initialize_copy other super @left = @left.clone if @left @right = @right.clone if @right end