Class: Ignorance::GitIgnoreFile
- Inherits:
-
IgnoreFile
- Object
- IgnoreFile
- Ignorance::GitIgnoreFile
- Includes:
- ProjectOrientedVCS
- Defined in:
- lib/ignorance/git_ignore_file.rb
Instance Attribute Summary collapse
-
#ignore_file ⇒ Object
readonly
Returns the value of attribute ignore_file.
-
#repo_dir ⇒ Object
readonly
Returns the value of attribute repo_dir.
Instance Method Summary collapse
-
#initialize ⇒ GitIgnoreFile
constructor
A new instance of GitIgnoreFile.
Methods included from ProjectOrientedVCS
Methods inherited from IgnoreFile
#exists?, #ignore!, #ignored?, #included?, #its_a_repo?, #name
Constructor Details
#initialize ⇒ GitIgnoreFile
Returns a new instance of GitIgnoreFile.
10 11 12 13 |
# File 'lib/ignorance/git_ignore_file.rb', line 10 def initialize @ignore_file = '.gitignore' @repo_dir = '.git' end |
Instance Attribute Details
#ignore_file ⇒ Object (readonly)
Returns the value of attribute ignore_file.
6 7 8 |
# File 'lib/ignorance/git_ignore_file.rb', line 6 def ignore_file @ignore_file end |
#repo_dir ⇒ Object (readonly)
Returns the value of attribute repo_dir.
6 7 8 |
# File 'lib/ignorance/git_ignore_file.rb', line 6 def repo_dir @repo_dir end |