Class: FastIgnore::RelativeCandidate

Inherits:
Object
  • Object
show all
Defined in:
lib/fast_ignore/relative_candidate.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(relative_path, root_candidate) ⇒ RelativeCandidate

Returns a new instance of RelativeCandidate.



7
8
9
10
# File 'lib/fast_ignore/relative_candidate.rb', line 7

def initialize(relative_path, root_candidate)
  @relative_path = relative_path
  @root_candidate = root_candidate
end

Instance Attribute Details

#relative_pathObject (readonly)

Returns the value of attribute relative_path.



5
6
7
# File 'lib/fast_ignore/relative_candidate.rb', line 5

def relative_path
  @relative_path
end

Instance Method Details

#filenameObject



12
13
14
# File 'lib/fast_ignore/relative_candidate.rb', line 12

def filename
  @root_candidate.filename
end

#first_lineObject



16
17
18
# File 'lib/fast_ignore/relative_candidate.rb', line 16

def first_line
  @root_candidate.first_line
end