Sha256: 19f0dbbcd1429115db1172906fceadecf3d719d75b9e10a049d4b849bdf737da

Contents?: true

Size: 313 Bytes

Versions: 2

Compression:

Stored size: 313 Bytes

Contents

module CypherBuilder
  def Cypher(*args)
    Class.new(Runner).tap do |the_class|
      the_class.cypher = Cypher.new(*args)
    end
  end

  class Cypher
    include Resolver

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

    def as_cypher(opts)
      resolve(@parts, ** opts)
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
cypher_builder-0.0.2 lib/cypher_builder/cypher.rb
cypher_builder-0.0.1 lib/cypher_builder/cypher.rb