class Aspen::CustomStatement

Attributes

nodes[R]
type[R]

Public Class Methods

new(nodes: , cypher: ) click to toggle source

@param nodes [Array<Aspen::Node>] a list of nodes @param cypher [String] the Cypher generated by the template

by the compiler

@todo The inclusion of the Cypher parameter suggests that

there might be a better way to generate the Cypher from a
custom statement. Not sure.
# File lib/aspen/custom_statement.rb, line 26
def initialize(nodes: , cypher: )
  @nodes  = nodes
  @cypher = cypher
end

Public Instance Methods

signature() click to toggle source

@todo The signature of the custom statement should be the

Cypher template for that statement.
# File lib/aspen/custom_statement.rb, line 16
def signature
  "custom"
end
to_cypher() click to toggle source
# File lib/aspen/custom_statement.rb, line 31
def to_cypher
  @cypher
end