Class: Treedisha::Comparator

Inherits:
Object
  • Object
show all
Defined in:
lib/treedisha/comparator.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#createdObject (readonly)

Returns the value of attribute created.



5
6
7
# File 'lib/treedisha/comparator.rb', line 5

def created
  @created
end

#deletedObject (readonly)

Returns the value of attribute deleted.



5
6
7
# File 'lib/treedisha/comparator.rb', line 5

def deleted
  @deleted
end

#modifiedObject (readonly)

Returns the value of attribute modified.



8
9
10
# File 'lib/treedisha/comparator.rb', line 8

def modified
  @modified
end

#modified_new_contentObject (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_contentObject (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

#movedObject (readonly)

Returns the value of attribute moved.



8
9
10
# File 'lib/treedisha/comparator.rb', line 8

def moved
  @moved
end

#moved_new_locationsObject (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_locationsObject (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

#untouchedObject (readonly)

Returns the value of attribute untouched.



4
5
6
# File 'lib/treedisha/comparator.rb', line 4

def untouched
  @untouched
end