Module: Superhosting::MapperInheritance::Base

Included in:
Model, Mux
Defined in:
lib/superhosting/mapper_inheritance/base.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#inheritorsObject

Returns the value of attribute inheritors.



4
5
6
# File 'lib/superhosting/mapper_inheritance/base.rb', line 4

def inheritors
  @inheritors
end

#inheritors_treeObject

Returns the value of attribute inheritors_tree.



4
5
6
# File 'lib/superhosting/mapper_inheritance/base.rb', line 4

def inheritors_tree
  @inheritors_tree
end

Instance Method Details

#initializeObject



6
7
8
9
# File 'lib/superhosting/mapper_inheritance/base.rb', line 6

def initialize
  self.inheritors = {}
  self.inheritors_tree = {}
end

#set_inheritors(mapper) ⇒ Object



11
12
13
# File 'lib/superhosting/mapper_inheritance/base.rb', line 11

def set_inheritors(mapper)
  self.set_inheritance(mapper)
end