class Arel::Nodes::Binary
Attributes
Public Class Methods
Source
# File lib/arel/nodes/binary.rb, line 7 def initialize left, right super() @left = left @right = right end
Calls superclass method
Arel::Nodes::Node::new
Public Instance Methods
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: ==
Source
# File lib/arel/nodes/binary.rb, line 19 def hash [self.class, @left, @right].hash end
Source
# File lib/arel/nodes/binary.rb, line 13 def initialize_copy other super @left = @left.clone if @left @right = @right.clone if @right end
Calls superclass method