Module: Siren::JsonQuery::Equal

Defined in:
lib/siren/json_query_nodes.rb

Instance Method Summary collapse

Instance Method Details

#value(expr1, expr2) ⇒ Object



247
248
249
250
# File 'lib/siren/json_query_nodes.rb', line 247

def value(expr1, expr2)
  return expr1 == expr2 unless expr2.respond_to?(:gsub)
  expr1 =~ %r{^#{Match.convert(expr2)}$}
end