Class: FilesChanged

Inherits:
Object
  • Object
show all
Defined in:
lib/tipster/commands/git/files_changed.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(commit_id) ⇒ FilesChanged

Returns a new instance of FilesChanged.



3
4
5
# File 'lib/tipster/commands/git/files_changed.rb', line 3

def initialize(commit_id)
  @list = `git show #{commit_id} --numstat`
end

Instance Attribute Details

#listObject (readonly)

Returns the value of attribute list.



2
3
4
# File 'lib/tipster/commands/git/files_changed.rb', line 2

def list
  @list
end