Sha256: d303bab518915afb64807c488520584725ff0146060dbc6d7cafb34f7dee6469
Contents?: true
Size: 308 Bytes
Versions: 3
Compression:
Stored size: 308 Bytes
Contents
module CypherBuilder def And(*parts) And.new(*parts) end class And include Resolver def initialize(*parts) @parts = wrap(*parts) end def as_cypher(payload:, context: ) resolve(@parts, separator: ' AND ', 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/and.rb |
cypher_builder-0.0.4 | lib/cypher_builder/and.rb |
cypher_builder-0.0.3 | lib/cypher_builder/and.rb |