Class: Milestoner::Commits::Categorizer
- Inherits:
-
Object
- Object
- Milestoner::Commits::Categorizer
- Defined in:
- lib/milestoner/commits/categorizer.rb
Overview
Retrieves and categorizes Git repository commit tagged or untagged history.
Instance Method Summary collapse
- #call(min: Collector::MIN, max: Collector::MAX) ⇒ Object
-
#initialize(collector: Collector.new) ⇒ Categorizer
constructor
A new instance of Categorizer.
Constructor Details
#initialize(collector: Collector.new) ⇒ Categorizer
Returns a new instance of Categorizer.
14 15 16 17 18 19 20 |
# File 'lib/milestoner/commits/categorizer.rb', line 14 def initialize(collector: Collector.new, **) @collector = collector super(**) @labels = settings.commit_categories.pluck :label @pattern = labels.empty? ? // : Regexp.union(labels) end |