Class: MultiRepo::Change

Inherits:
Object
  • Object
show all
Defined in:
lib/multirepo/git/change.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#pathObject

Returns the value of attribute path.



4
5
6
# File 'lib/multirepo/git/change.rb', line 4

def path
  @path
end

#statusObject

Returns the value of attribute status.



3
4
5
# File 'lib/multirepo/git/change.rb', line 3

def status
  @status
end