class CypherBuilder::Cypher

Public Class Methods

new(*parts) click to toggle source
# File lib/cypher_builder/cypher.rb, line 11
def initialize(*parts)
  @parts = wrap(*parts)
end

Public Instance Methods

as_cypher(payload:, context:) click to toggle source
# File lib/cypher_builder/cypher.rb, line 15
def as_cypher(payload:, context:)
  resolve(@parts, payload: payload, context: context.add(self))
end