Class: CypherBuilder::Literal
- Inherits:
-
Object
- Object
- CypherBuilder::Literal
- Includes:
- Resolver
- Defined in:
- lib/cypher_builder/literal.rb
Instance Method Summary collapse
- #as_cypher(_) ⇒ Object
-
#initialize(value) ⇒ Literal
constructor
A new instance of Literal.
Methods included from Resolver
Constructor Details
#initialize(value) ⇒ Literal
Returns a new instance of Literal.
8 9 10 |
# File 'lib/cypher_builder/literal.rb', line 8 def initialize(value) @value = value end |
Instance Method Details
#as_cypher(_) ⇒ Object
12 13 14 15 |
# File 'lib/cypher_builder/literal.rb', line 12 def as_cypher(_) # TODO escape "'" sprintf('"%s"', @value) end |