Class: Dige::ParentChildRelation
- Inherits:
-
Object
- Object
- Dige::ParentChildRelation
- Includes:
- ClassBase
- Defined in:
- lib/dige/parent_child_relation.rb
Instance Attribute Summary collapse
-
#child_class_name ⇒ Object
Returns the value of attribute child_class_name.
-
#parent_class_name ⇒ Object
Returns the value of attribute parent_class_name.
Instance Method Summary collapse
Methods included from ClassBase
Instance Attribute Details
#child_class_name ⇒ Object
Returns the value of attribute child_class_name.
3 4 5 |
# File 'lib/dige/parent_child_relation.rb', line 3 def child_class_name @child_class_name end |
#parent_class_name ⇒ Object
Returns the value of attribute parent_class_name.
3 4 5 |
# File 'lib/dige/parent_child_relation.rb', line 3 def parent_class_name @parent_class_name end |
Instance Method Details
#==(objekt) ⇒ Object
9 10 11 12 |
# File 'lib/dige/parent_child_relation.rb', line 9 def ==(objekt) self.parent_class_name == objekt.parent_class_name && self.child_class_name == objekt.child_class_name end |
#debug_inspect ⇒ Object
5 6 7 |
# File 'lib/dige/parent_child_relation.rb', line 5 def debug_inspect "#{parent_class_name} < #{child_class_name}" end |