Sha256: a1e28f7eb7893f18e7cd008963a095859a7f5a7634fb3a727992a80089f34081
Contents?: true
Size: 364 Bytes
Versions: 3
Compression:
Stored size: 364 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(payload:, context:) resolve(@parts, 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/cypher.rb |
cypher_builder-0.0.4 | lib/cypher_builder/cypher.rb |
cypher_builder-0.0.3 | lib/cypher_builder/cypher.rb |