Class: Ignorance::GitIgnoreFile

Inherits:
IgnoreFile show all
Includes:
ProjectOrientedVCS
Defined in:
lib/ignorance/git_ignore_file.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from ProjectOrientedVCS

#its_a_repo?

Methods inherited from IgnoreFile

#exists?, #ignore!, #ignored?, #included?, #its_a_repo?, #name

Constructor Details

#initializeGitIgnoreFile

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_fileObject (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_dirObject (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