lib/grumlin/expressions/p.rb in grumlin-0.19.6 vs lib/grumlin/expressions/p.rb in grumlin-0.19.7
- old
+ new
@@ -14,10 +14,10 @@
end
end
class << self
# TODO: support more predicates
- %i[eq neq].each do |predicate|
+ %i[eq gt lt neq].each do |predicate|
define_method predicate do |*args|
Predicate.new("P", predicate, value: args[0])
end
end