Class: MultiRepo::Change
- Inherits:
-
Object
- Object
- MultiRepo::Change
- Defined in:
- lib/multirepo/git/change.rb
Instance Attribute Summary collapse
-
#path ⇒ Object
Returns the value of attribute path.
-
#status ⇒ Object
Returns the value of attribute status.
Instance Method Summary collapse
-
#initialize(line) ⇒ Change
constructor
A new instance of Change.
Constructor Details
#initialize(line) ⇒ Change
Returns a new instance of Change.
6 7 8 9 |
# File 'lib/multirepo/git/change.rb', line 6 def initialize(line) @status = line[0...2].strip @path = line[3..-1] end |
Instance Attribute Details
#path ⇒ Object
Returns the value of attribute path.
4 5 6 |
# File 'lib/multirepo/git/change.rb', line 4 def path @path end |
#status ⇒ Object
Returns the value of attribute status.
3 4 5 |
# File 'lib/multirepo/git/change.rb', line 3 def status @status end |