Sha256: 366b054f6e016fe994484606420194958aa24d831472b8d344235ce7656a512c

Contents?: true

Size: 320 Bytes

Versions: 1

Compression:

Stored size: 320 Bytes

Contents

module CypherBuilder
  def Match(*args)
    Match.new(*args)
  end

  class Match
    include Resolver

    def initialize(*parts)
      @parts = wrap(*parts)
    end

    def as_cypher(payload:, context: )
      'MATCH ' + resolve(@parts, separator: ', ', payload: payload, context: context.add(self))
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
cypher_builder-0.0.5 lib/cypher_builder/match.rb