lib/cypher_builder/resolver.rb in cypher_builder-0.0.2 vs lib/cypher_builder/resolver.rb in cypher_builder-0.0.3

- old
+ new

@@ -7,9 +7,11 @@ Literal.new(v) end end end - def resolve(parts, format: '%s', separator: ' ', payload:) - Array(parts).map { |p| sprintf(format, p.as_cypher(payload: payload)) }.join(separator).strip + def resolve(parts, format: '%s', separator: ' ', ** opts) + Array(parts).map do |p| + sprintf(format, p.as_cypher(** opts)) + end.join(separator).strip end end \ No newline at end of file