Class: Dige::ParentChildRelations
- Inherits:
-
Object
- Object
- Dige::ParentChildRelations
- Includes:
- List
- Defined in:
- lib/dige/parent_child_relations.rb
Instance Method Summary collapse
Methods included from List
Instance Method Details
#all ⇒ Object
13 14 15 |
# File 'lib/dige/parent_child_relations.rb', line 13 def all list end |
#register(parent_class_name, child_class_name) ⇒ Object
4 5 6 7 8 9 10 11 |
# File 'lib/dige/parent_child_relations.rb', line 4 def register(parent_class_name, child_class_name) objekt = Dige::ParentChildRelation.new({ :parent_class_name => parent_class_name, :child_class_name => child_class_name }) unless return_objekt = find(objekt) list << objekt return_objekt = objekt end return_objekt end |