Module: Neo4j::Core::Wrapper::ClassMethods

Included in:
Node, Relationship
Defined in:
lib/neo4j-core/wrapper/class_methods.rb

Instance Method Summary collapse

Instance Method Details

#wrapper(entity) ⇒ Object

Tries to load a wrapper for this node if possible

See Also:



8
9
10
# File 'lib/neo4j-core/wrapper/class_methods.rb', line 8

def wrapper(entity)
  @_wrapper_proc ? @_wrapper_proc.call(entity) : entity
end

#wrapper_proc=(proc) ⇒ Object

Sets the procs to be used to load wrappers

See Also:



14
15
16
# File 'lib/neo4j-core/wrapper/class_methods.rb', line 14

def wrapper_proc=(proc)
  @_wrapper_proc = proc
end