Class: TreeDiff::Change
- Inherits:
-
Object
- Object
- TreeDiff::Change
- Defined in:
- lib/tree_diff.rb
Instance Attribute Summary collapse
-
#new ⇒ Object
readonly
Returns the value of attribute new.
-
#old ⇒ Object
readonly
Returns the value of attribute old.
-
#path ⇒ Object
readonly
Returns the value of attribute path.
Instance Method Summary collapse
-
#initialize(path, old, new) ⇒ Change
constructor
A new instance of Change.
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
#new ⇒ Object (readonly)
Returns the value of attribute new.
5 6 7 |
# File 'lib/tree_diff.rb', line 5 def new @new end |
#old ⇒ Object (readonly)
Returns the value of attribute old.
5 6 7 |
# File 'lib/tree_diff.rb', line 5 def old @old end |
#path ⇒ Object (readonly)
Returns the value of attribute path.
5 6 7 |
# File 'lib/tree_diff.rb', line 5 def path @path end |