Base class for all SQL fragments
Alias of eql?
# File lib/sequel/sql.rb, line 72 def ==(other) eql?(other) end
Returns true if the receiver is the same expression as the the other expression.
# File lib/sequel/sql.rb, line 78 def eql?(other) other.is_a?(self.class) && !self.class.comparison_attrs.find {|a| send(a) != other.send(a)} end
Make sure that the hash value is the same if the attributes are the same.
# File lib/sequel/sql.rb, line 83 def hash ([self.class] + self.class.comparison_attrs.map{|x| send(x)}).hash end
Returns self, because SQL::Expression already acts like LiteralString.
# File lib/sequel/sql.rb, line 89 def lit self end
Generated with the Darkfish Rdoc Generator 2.