Class: FilesChanged
- Inherits:
-
Object
- Object
- FilesChanged
- Defined in:
- lib/tipster/commands/git/files_changed.rb
Instance Attribute Summary collapse
-
#list ⇒ Object
readonly
Returns the value of attribute list.
Instance Method Summary collapse
-
#initialize(commit_id) ⇒ FilesChanged
constructor
A new instance of FilesChanged.
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
#list ⇒ Object (readonly)
Returns the value of attribute list.
2 3 4 |
# File 'lib/tipster/commands/git/files_changed.rb', line 2 def list @list end |