Class: Predicate::Postgres::Rewriter::ToLiteral
- Inherits:
-
Sexpr::Rewriter
- Object
- Sexpr::Rewriter
- Predicate::Postgres::Rewriter::ToLiteral
- Defined in:
- lib/predicate/postgres/rewriter.rb
Instance Method Summary collapse
Instance Method Details
#on_literal(sexpr) ⇒ Object
9 10 11 12 13 14 15 |
# File 'lib/predicate/postgres/rewriter.rb', line 9 def on_literal(sexpr) if sexpr.last.is_a?(Array) [ :pg_array_literal, sexpr.last, :varchar ] else sexpr end end |