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.
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
#new ⇒ Object (readonly)
Returns the value of attribute new.
6 7 8 |
# File 'lib/tree_diff.rb', line 6 def new @new end |
#old ⇒ Object (readonly)
Returns the value of attribute old.
6 7 8 |
# File 'lib/tree_diff.rb', line 6 def old @old end |
#path ⇒ Object (readonly)
Returns the value of attribute path.
6 7 8 |
# File 'lib/tree_diff.rb', line 6 def path @path end |