Method: Grit::Status::StatusFile#initialize
- Defined in:
- lib/grit/status.rb
#initialize(base, hash) ⇒ StatusFile
Returns a new instance of StatusFile.
66 67 68 69 70 71 72 73 74 75 76 |
# File 'lib/grit/status.rb', line 66 def initialize(base, hash) @base = base @path = hash[:path] @type = hash[:type] @stage = hash[:stage] @mode_index = hash[:mode_index] @mode_repo = hash[:mode_repo] @sha_index = hash[:sha_index] @sha_repo = hash[:sha_repo] @untracked = hash[:untracked] end |