aboutsummaryrefslogtreecommitdiffstats
path: root/lib/arel/relations/skip.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/arel/relations/skip.rb')
-rw-r--r--lib/arel/relations/skip.rb15
1 files changed, 15 insertions, 0 deletions
diff --git a/lib/arel/relations/skip.rb b/lib/arel/relations/skip.rb
new file mode 100644
index 0000000000..f17e439ebf
--- /dev/null
+++ b/lib/arel/relations/skip.rb
@@ -0,0 +1,15 @@
+module Arel
+ class Skip < Compound
+ attr_reader :skipped
+
+ def initialize(relation, skipped)
+ @relation, @skipped = relation, skipped
+ end
+
+ def ==(other)
+ self.class == other.class and
+ relation == other.relation and
+ skipped == other.skipped
+ end
+ end
+end \ No newline at end of file