Sha256: 3f2eee3fefe8428b6fe0ae9d74826d84e05d7f121161e7652a260fde79a8a942

Contents?: true

Size: 336 Bytes

Versions: 3

Compression:

Stored size: 336 Bytes

Contents

module CypherBuilder
  def Return(*parts)
    Return.new(*parts)
  end

  class Return
    include Resolver

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

    def as_cypher(payload:, context: )
      sprintf('RETURN %s', resolve(@parts, separator: ', ', payload: payload, context: context.add(self)))
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
cypher_builder-0.0.5 lib/cypher_builder/return.rb
cypher_builder-0.0.4 lib/cypher_builder/return.rb
cypher_builder-0.0.3 lib/cypher_builder/return.rb