aboutsummaryrefslogtreecommitdiffstats
path: root/lib/arel/engines/memory/primitives.rb
diff options
context:
space:
mode:
authorBryan Helmkamp <bryan@brynary.com>2009-05-17 16:20:40 -0400
committerBryan Helmkamp <bryan@brynary.com>2009-05-17 16:20:40 -0400
commitdc7b51883b1cc8ad7e525b7315fb575ae77a5b3d (patch)
tree97f5e4d55baa45f9805eb36a2196bcc12094ae3a /lib/arel/engines/memory/primitives.rb
parent19b2af181009acfcb24d156ca350c148630e6787 (diff)
downloadrails-dc7b51883b1cc8ad7e525b7315fb575ae77a5b3d.tar.gz
rails-dc7b51883b1cc8ad7e525b7315fb575ae77a5b3d.tar.bz2
rails-dc7b51883b1cc8ad7e525b7315fb575ae77a5b3d.zip
Whitespace
Diffstat (limited to 'lib/arel/engines/memory/primitives.rb')
-rw-r--r--lib/arel/engines/memory/primitives.rb10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/arel/engines/memory/primitives.rb b/lib/arel/engines/memory/primitives.rb
index f8bbcedb55..935b34f5ee 100644
--- a/lib/arel/engines/memory/primitives.rb
+++ b/lib/arel/engines/memory/primitives.rb
@@ -4,24 +4,24 @@ module Arel
row[self]
end
end
-
+
class Value
def eval(row)
value
end
end
-
+
class Ordering
def eval(row1, row2)
(attribute.eval(row1) <=> attribute.eval(row2)) * direction
end
end
-
+
class Descending < Ordering
def direction; -1 end
end
-
+
class Ascending < Ordering
def direction; 1 end
end
-end \ No newline at end of file
+end