Sha256: af1086000058f286fa96f91c75f5e1271466d1d4b38957610945786eadc472d0
Contents?: true
Size: 917 Bytes
Versions: 16
Compression:
Stored size: 917 Bytes
Contents
module Arel module Nodes class Binary < Arel::Nodes::Node attr_accessor :left, :right def initialize left, right super() @left = left @right = right end def initialize_copy other super @left = @left.clone if @left @right = @right.clone if @right end def hash [self.class, @left, @right].hash end def eql? other self.class == other.class && self.left == other.left && self.right == other.right end alias :== :eql? end %w{ As Assignment Between GreaterThan GreaterThanOrEqual Join LessThan LessThanOrEqual NotEqual NotIn NotRegexp Or Regexp Union UnionAll Intersect Except }.each do |name| const_set name, Class.new(Binary) end end end
Version data entries
16 entries across 16 versions & 7 rubygems