Class: FastIgnore::RelativeCandidate
- Inherits:
-
Object
- Object
- FastIgnore::RelativeCandidate
- Defined in:
- lib/fast_ignore/relative_candidate.rb
Instance Attribute Summary collapse
-
#relative_path ⇒ Object
readonly
Returns the value of attribute relative_path.
Instance Method Summary collapse
- #filename ⇒ Object
- #first_line ⇒ Object
-
#initialize(relative_path, root_candidate) ⇒ RelativeCandidate
constructor
A new instance of RelativeCandidate.
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_path ⇒ Object (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
#filename ⇒ Object
12 13 14 |
# File 'lib/fast_ignore/relative_candidate.rb', line 12 def filename @root_candidate.filename end |
#first_line ⇒ Object
16 17 18 |
# File 'lib/fast_ignore/relative_candidate.rb', line 16 def first_line @root_candidate.first_line end |