Sha256: 6965d75f9d5299b954cb718a9b296dbe265b97ce2288c61e97a32efce4336109

Contents?: true

Size: 639 Bytes

Versions: 10

Compression:

Stored size: 639 Bytes

Contents

module Neo4j::Mapping
  module ClassMethods
    module Root
      #attr_reader :_decl_rels, :_decl_props

      def root_class(clazz)
        @@_all_decl_rels  ||= {}
        @@_all_decl_props ||= {}
        @@_all_decl_rels[clazz] ||= {}
        @@_all_decl_props[clazz] ||= {}
        @_decl_rels  = @@_all_decl_rels[clazz]
        @_decl_props = @@_all_decl_props[clazz]
      end


      def _decl_rels
        @@_all_decl_rels[self] ||= {}
        @_decl_props = @@_all_decl_rels[self]
      end

      def _decl_props
        @@_all_decl_props[self] ||= {}
        @_decl_props = @@_all_decl_props[self]
      end

    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
neo4j-1.0.0.beta.17 lib/neo4j/mapping/class_methods/root.rb
neo4j-1.0.0.beta.16 lib/neo4j/mapping/class_methods/root.rb
neo4j-1.0.0.beta.15 lib/neo4j/mapping/class_methods/root.rb
neo4j-1.0.0.beta.14 lib/neo4j/mapping/class_methods/root.rb
neo4j-1.0.0.beta.13 lib/neo4j/mapping/class_methods/root.rb
neo4j-1.0.0.beta.12 lib/neo4j/mapping/class_methods/root.rb
neo4j-1.0.0.beta.11 lib/neo4j/mapping/class_methods/root.rb
neo4j-1.0.0.beta.10 lib/neo4j/mapping/class_methods/root.rb
neo4j-1.0.0.beta.9 lib/neo4j/mapping/class_methods/root.rb
neo4j-1.0.0.beta.8 lib/neo4j/mapping/class_methods/root.rb