Class: Arel::Nodes::Ordering
- Inherits:
-
Unary
- Object
- Unary
- Arel::Nodes::Ordering
- Defined in:
- lib/arel/visitors/teradata.rb
Overview
Extending the Ordering class to be comparrison friendly which allows us to call #uniq on a collection of them. See SelectManager#order for more details.
Instance Method Summary collapse
Instance Method Details
#==(other) ⇒ Object
15 16 17 |
# File 'lib/arel/visitors/teradata.rb', line 15 def ==(other) other.is_a?(Arel::Nodes::Ordering) && self.expr == other.expr end |
#eql?(other) ⇒ Boolean
18 19 20 |
# File 'lib/arel/visitors/teradata.rb', line 18 def eql?(other) self == other end |
#hash ⇒ Object
12 13 14 |
# File 'lib/arel/visitors/teradata.rb', line 12 def hash expr.hash end |