Sha256: d1184bd59db5c33b99ff0ebd2fc24ef05e8fc3f903bc37fed2c662455fc6343e

Contents?: true

Size: 451 Bytes

Versions: 16

Compression:

Stored size: 451 Bytes

Contents

module Neo4j
  module Core
    module Wrapper
      module ClassMethods

        # Tries to load a wrapper for this node if possible
        # @see #wrapper_proc=
        def wrapper(entity)
          @_wrapper_proc ? @_wrapper_proc.call(entity) : entity
        end

        # Sets the procs to be used to load wrappers
        # @see #wrapper
        def wrapper_proc=(proc)
          @_wrapper_proc = proc
        end


      end
    end
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
neo4j-core-2.0.0-java lib/neo4j-core/wrapper/class_methods.rb
neo4j-core-2.0.0.rc2-java lib/neo4j-core/wrapper/class_methods.rb
neo4j-core-2.0.0.rc1-java lib/neo4j-core/wrapper/class_methods.rb
neo4j-core-0.0.15-java lib/neo4j-core/wrapper/class_methods.rb
neo4j-core-0.0.14-java lib/neo4j-core/wrapper/class_methods.rb
neo4j-core-0.0.13-java lib/neo4j-core/wrapper/class_methods.rb
neo4j-core-0.0.12-java lib/neo4j-core/wrapper/class_methods.rb
neo4j-core-0.0.11-java lib/neo4j-core/wrapper/class_methods.rb
neo4j-core-0.0.10-java lib/neo4j-core/wrapper/class_methods.rb
neo4j-core-0.0.9-java lib/neo4j-core/wrapper/class_methods.rb
neo4j-core-0.0.8-java lib/neo4j-core/wrapper/class_methods.rb
neo4j-core-0.0.7-java lib/neo4j-core/wrapper/class_methods.rb
neo4j-core-0.0.6-java lib/neo4j-core/wrapper/class_methods.rb
neo4j-core-0.0.5-java lib/neo4j-core/wrapper/class_methods.rb
neo4j-core-0.0.4-java lib/neo4j-core/wrapper/class_methods.rb
neo4j-core-0.0.3-java lib/neo4j-core/wrapper/class_methods.rb