Class: StructuredChangelog::ReleaseFilters::Base
- Inherits:
-
Object
- Object
- StructuredChangelog::ReleaseFilters::Base
- Defined in:
- lib/structured_changelog/release_filters/base.rb
Direct Known Subclasses
MatchesAllVersions, MatchesCurrentVersion, MatchesSingleVersion, MatchesVersionsBetween, MatchesVersionsGreaterThanOrEqualTo, MatchesVersionsLessThanOrEqualTo
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(query) ⇒ Base
constructor
A new instance of Base.
Constructor Details
#initialize(query) ⇒ Base
Returns a new instance of Base.
8 9 10 |
# File 'lib/structured_changelog/release_filters/base.rb', line 8 def initialize(query) @query = query end |
Class Method Details
.appropriate_for_query?(query) ⇒ Boolean
4 5 6 |
# File 'lib/structured_changelog/release_filters/base.rb', line 4 def self.appropriate_for_query?(query) !query.match(pattern).nil? end |