Class: Dige::ParentChildRelation

Inherits:
Object
  • Object
show all
Includes:
ClassBase
Defined in:
lib/dige/parent_child_relation.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from ClassBase

#initialize

Instance Attribute Details

#child_class_nameObject

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_nameObject

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_inspectObject



5
6
7
# File 'lib/dige/parent_child_relation.rb', line 5

def debug_inspect
  "#{parent_class_name} < #{child_class_name}"
end