Sha256: aec3f0144697341a69f825cc2a58914f0e0159a5020105e81031407c50c1426b
Contents?: true
Size: 431 Bytes
Versions: 3
Compression:
Stored size: 431 Bytes
Contents
module CypherBuilder def Like(left, right) Like.new(left, right) end class Like include Resolver def initialize(left, right) @left, @right = wrap(left, right) end def as_cypher(payload:, context: ) sprintf('%s LIKE %s', resolve(@left, payload: payload, context: context.add(self)), resolve(@right, 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/like.rb |
cypher_builder-0.0.4 | lib/cypher_builder/like.rb |
cypher_builder-0.0.3 | lib/cypher_builder/like.rb |