Module: Siren::JsonQuery::Addition

Defined in:
lib/siren/json_query_nodes.rb

Instance Method Summary collapse

Instance Method Details

#value(expr1, expr2) ⇒ Object



230
231
232
233
234
# File 'lib/siren/json_query_nodes.rb', line 230

def value(expr1, expr2)
  String === expr1 || String === expr2 ?
      expr1.to_s + expr2.to_s :
      expr1 + expr2
end