Class: RubyGit::Status::IgnoredEntry
- Defined in:
- lib/ruby_git/status/ignored_entry.rb
Overview
Represents an ignored file in git status
Constant Summary
Constants inherited from Entry
Entry::RENAME_OPERATIONS, Entry::STATUS_CODES
Instance Attribute Summary
Attributes inherited from Entry
Class Method Summary collapse
-
.parse(line) ⇒ RubyGit::Status::IgnoredEntry
Parse a git status line to create an ignored entry.
Instance Method Summary collapse
-
#ignored? ⇒ Boolean
Is the entry an ignored file?.
-
#initialize(path:) ⇒ IgnoredEntry
constructor
Initialize with the path.
Methods inherited from Entry
#fully_staged?, #index_status, rename_operation_to_symbol, #staged?, status_to_symbol, #unmerged?, #unstaged?, #untracked?, #worktree_status
Constructor Details
#initialize(path:) ⇒ IgnoredEntry
Initialize with the path
31 32 33 |
# File 'lib/ruby_git/status/ignored_entry.rb', line 31 def initialize(path:) super(path) end |
Class Method Details
.parse(line) ⇒ RubyGit::Status::IgnoredEntry
Parse a git status line to create an ignored entry
19 20 21 22 |
# File 'lib/ruby_git/status/ignored_entry.rb', line 19 def self.parse(line) tokens = line.split(' ', 2) new(path: tokens[1]) end |
Instance Method Details
#ignored? ⇒ Boolean
Is the entry an ignored file?
39 40 41 |
# File 'lib/ruby_git/status/ignored_entry.rb', line 39 def ignored? true end |