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.



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

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

Instance Attribute Details

#newObject (readonly)

Returns the value of attribute new.



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

def new
  @new
end

#oldObject (readonly)

Returns the value of attribute old.



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

def old
  @old
end

#pathObject (readonly)

Returns the value of attribute path.



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

def path
  @path
end