Class: Treedisha::Comparator
- Inherits:
-
Object
- Object
- Treedisha::Comparator
- Defined in:
- lib/treedisha/comparator.rb
Instance Attribute Summary collapse
-
#created ⇒ Object
readonly
Returns the value of attribute created.
-
#deleted ⇒ Object
readonly
Returns the value of attribute deleted.
-
#modified ⇒ Object
readonly
Returns the value of attribute modified.
-
#modified_new_content ⇒ Object
readonly
Returns the value of attribute modified_new_content.
-
#modified_old_content ⇒ Object
readonly
Returns the value of attribute modified_old_content.
-
#moved ⇒ Object
readonly
Returns the value of attribute moved.
-
#moved_new_locations ⇒ Object
readonly
Returns the value of attribute moved_new_locations.
-
#moved_old_locations ⇒ Object
readonly
Returns the value of attribute moved_old_locations.
-
#untouched ⇒ Object
readonly
Returns the value of attribute untouched.
Instance Method Summary collapse
-
#initialize(new_tree, old_tree) ⇒ Comparator
constructor
A new instance of Comparator.
Constructor Details
#initialize(new_tree, old_tree) ⇒ Comparator
Returns a new instance of Comparator.
10 11 12 13 14 15 |
# File 'lib/treedisha/comparator.rb', line 10 def initialize(new_tree, old_tree) @new_tree = new_tree @old_tree = old_tree compare! end |
Instance Attribute Details
#created ⇒ Object (readonly)
Returns the value of attribute created.
5 6 7 |
# File 'lib/treedisha/comparator.rb', line 5 def created @created end |
#deleted ⇒ Object (readonly)
Returns the value of attribute deleted.
5 6 7 |
# File 'lib/treedisha/comparator.rb', line 5 def deleted @deleted end |
#modified ⇒ Object (readonly)
Returns the value of attribute modified.
8 9 10 |
# File 'lib/treedisha/comparator.rb', line 8 def modified @modified end |
#modified_new_content ⇒ Object (readonly)
Returns the value of attribute modified_new_content.
7 8 9 |
# File 'lib/treedisha/comparator.rb', line 7 def modified_new_content @modified_new_content end |
#modified_old_content ⇒ Object (readonly)
Returns the value of attribute modified_old_content.
7 8 9 |
# File 'lib/treedisha/comparator.rb', line 7 def modified_old_content @modified_old_content end |
#moved ⇒ Object (readonly)
Returns the value of attribute moved.
8 9 10 |
# File 'lib/treedisha/comparator.rb', line 8 def moved @moved end |
#moved_new_locations ⇒ Object (readonly)
Returns the value of attribute moved_new_locations.
6 7 8 |
# File 'lib/treedisha/comparator.rb', line 6 def moved_new_locations @moved_new_locations end |
#moved_old_locations ⇒ Object (readonly)
Returns the value of attribute moved_old_locations.
6 7 8 |
# File 'lib/treedisha/comparator.rb', line 6 def moved_old_locations @moved_old_locations end |
#untouched ⇒ Object (readonly)
Returns the value of attribute untouched.
4 5 6 |
# File 'lib/treedisha/comparator.rb', line 4 def untouched @untouched end |