lib/predicate/processors/to_s.rb in predicate-2.0.1 vs lib/predicate/processors/to_s.rb in predicate-2.1.0
- old
+ new
@@ -48,18 +48,22 @@
alias :on_lte :on_dyadic
alias :on_gt :on_dyadic
alias :on_gte :on_dyadic
def on_in(sexpr)
- "#{apply(sexpr.identifier)} IN #{to_literal(sexpr.values)}"
+ "#{apply(sexpr.identifier)} IN #{apply(sexpr.right)}"
end
def on_intersect(sexpr)
"#{apply(sexpr.identifier)} INTERSECTS #{to_literal(sexpr.values)}"
end
def on_literal(sexpr)
to_literal(sexpr.last)
+ end
+
+ def on_opaque(sexpr)
+ "OPAQUE #{sexpr.last}"
end
def on_match(sexpr)
"#{apply(sexpr.left)} =~ #{apply(sexpr.right)}"
end