Module: Neo4j::Core::ArgumentHelper

Defined in:
lib/neo4j-core/helpers.rb

Class Method Summary (collapse)

Class Method Details

+ (Object) session(args)



4
5
6
# File 'lib/neo4j-core/helpers.rb', line 4

def self.session(args)
  args.last.is_a?(Neo4j::Session) ? args.pop : Neo4j::Session.current!
end