Sha256: 45452ee4a23c75fc384b37972eeef38a28050d51720a15f00a47b7a53dd2a4eb
Contents?: true
Size: 314 Bytes
Versions: 2
Compression:
Stored size: 314 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(opts) sprintf('%s LIKE %s', resolve(@left, ** opts), resolve(@right, ** opts)) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
cypher_builder-0.0.2 | lib/cypher_builder/like.rb |
cypher_builder-0.0.1 | lib/cypher_builder/like.rb |