Class: TreeDiff::Change

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(path, old, new) ⇒ Change

Returns a new instance of Change.



7
8
9
10
11
# File 'lib/tree_diff.rb', line 7

def initialize(path, old, new)
  @path = path
  @old = old
  @new = new
end

Instance Attribute Details

#newObject (readonly)

Returns the value of attribute new.



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

def new
  @new
end

#oldObject (readonly)

Returns the value of attribute old.



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

def old
  @old
end

#pathObject (readonly)

Returns the value of attribute path.



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

def path
  @path
end