Class: Refinement::UsedGlob
- Inherits:
-
Object
- Object
- Refinement::UsedGlob
- Defined in:
- lib/refinement/used_path.rb
Overview
Represents a glob that some target depends upon.
Instance Method Summary collapse
-
#find_in_changeset(changeset) ⇒ Nil, String
If the path has been modified, a string explaining the modification.
-
#initialize(glob:, inclusion_reason:) ⇒ UsedGlob
constructor
A new instance of UsedGlob.
Constructor Details
#initialize(glob:, inclusion_reason:) ⇒ UsedGlob
Returns a new instance of UsedGlob.
92 93 94 95 |
# File 'lib/refinement/used_path.rb', line 92 def initialize(glob:, inclusion_reason:) @glob = glob @inclusion_reason = inclusion_reason end |
Instance Method Details
#find_in_changeset(changeset) ⇒ Nil, String
Returns If the path has been modified, a string explaining the modification.
98 99 100 |
# File 'lib/refinement/used_path.rb', line 98 def find_in_changeset(changeset) add_reason changeset.find_modification_for_glob(absolute_glob: glob) end |