Sha256: dd5e4f886756e0bfd0d9b0a3cc5547c346f265233ee78606ec53960408541c5c

Contents?: true

Size: 331 Bytes

Versions: 1

Compression:

Stored size: 331 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: )
      resolve(@parts, format: 'MATCH (%s)', 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.3 lib/cypher_builder/match.rb