Method: CypherBuilder::Rel#initialize

Defined in:
lib/cypher_builder/rel.rb

#initialize(prefix, labels: [], from: nil, to: nil) ⇒ Rel

Returns a new instance of Rel.



7
8
9
10
# File 'lib/cypher_builder/rel.rb', line 7

def initialize(prefix, labels: [], from: nil, to: nil)
  @prefix, @labels = prefix, ::Kernel.Array(labels)
  @from, @to = from, to
end