Sha256: 38e650942288e84464fd0c4087b589d383223b6be1c262c7c446dfab0e2a8679

Contents?: true

Size: 554 Bytes

Versions: 4

Compression:

Stored size: 554 Bytes

Contents

module Neo4j
  module Core
    # Can be used to define your own wrapper class around nodes and relationships
    module Wrapper

      # @return [self, Object] return self or a wrapper Ruby object
      # @see  Neo4j::Node::ClassMethods#wrapper
      def wrapper
        self.class.wrapper(self)
      end

      # This can be implemented by a wrapper to returned the underlying java node or relationship.
      # You can override this method in your own wrapper class.
      # @return self
      def java_entity
        self
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
neo4j-core-0.0.13-java lib/neo4j-core/wrapper/wrapper.rb
neo4j-core-0.0.12-java lib/neo4j-core/wrapper/wrapper.rb
neo4j-core-0.0.11-java lib/neo4j-core/wrapper/wrapper.rb
neo4j-core-0.0.10-java lib/neo4j-core/wrapper/wrapper.rb