aboutsummaryrefslogtreecommitdiffstats
path: root/lib/arel/engines/memory
diff options
context:
space:
mode:
Diffstat (limited to 'lib/arel/engines/memory')
-rw-r--r--lib/arel/engines/memory/predicates.rb50
1 files changed, 26 insertions, 24 deletions
diff --git a/lib/arel/engines/memory/predicates.rb b/lib/arel/engines/memory/predicates.rb
index 03d4f25b0a..dd2559c70f 100644
--- a/lib/arel/engines/memory/predicates.rb
+++ b/lib/arel/engines/memory/predicates.rb
@@ -1,35 +1,37 @@
module Arel
- class Binary < Predicate
- def eval(row)
- operand1.eval(row).send(operator, operand2.eval(row))
+ module Predicates
+ class Binary < Predicate
+ def eval(row)
+ operand1.eval(row).send(operator, operand2.eval(row))
+ end
end
- end
- class Equality < Binary
- def operator; :== end
- end
+ class Equality < Binary
+ def operator; :== end
+ end
- class GreaterThanOrEqualTo < Binary
- def operator; :>= end
- end
+ class GreaterThanOrEqualTo < Binary
+ def operator; :>= end
+ end
- class GreaterThan < Binary
- def operator; :> end
- end
+ class GreaterThan < Binary
+ def operator; :> end
+ end
- class LessThanOrEqualTo < Binary
- def operator; :<= end
- end
+ class LessThanOrEqualTo < Binary
+ def operator; :<= end
+ end
- class LessThan < Binary
- def operator; :< end
- end
+ class LessThan < Binary
+ def operator; :< end
+ end
- class Match < Binary
- def operator; :=~ end
- end
+ class Match < Binary
+ def operator; :=~ end
+ end
- class In < Binary
- def operator; :include? end
+ class In < Binary
+ def operator; :include? end
+ end
end
end