Sha256: b4fa4111213723b0b1f34e3a2b01e251567b5a07028d1918ccce2f4eb8fc1334
Contents?: true
Size: 881 Bytes
Versions: 62
Compression:
Stored size: 881 Bytes
Contents
module Neo4j::Shared module Cypher module CreateMethod def create_method creates_unique? ? :create_unique : :create end def creates_unique(option = :none) option = :none if option == true @creates_unique = option end def creates_unique_option @creates_unique || :none end def creates_unique? !!@creates_unique end alias_method :unique?, :creates_unique? end module RelIdentifiers extend ActiveSupport::Concern [:from_node, :to_node, :rel].each do |element| define_method("#{element}_identifier") do instance_variable_get(:"@#{element}_identifier") || element end define_method("#{element}_identifier=") do |id| instance_variable_set(:"@#{element}_identifier", id.to_sym) end end end end end
Version data entries
62 entries across 62 versions & 2 rubygems
Version | Path |
---|---|
neo4j-6.0.0.rc.2 | lib/neo4j/shared/cypher.rb |
neo4j-6.0.0.rc.1 | lib/neo4j/shared/cypher.rb |