Class: Git::Lint::Runner
- Inherits:
-
Object
- Object
- Git::Lint::Runner
- Defined in:
- lib/git/lint/runner.rb
Instance Method Summary collapse
- #call(commits: branch.commits) ⇒ Object
-
#initialize(configuration:, branch: Branches::Feature.new, collector: Collector.new) ⇒ Runner
constructor
A new instance of Runner.
Constructor Details
#initialize(configuration:, branch: Branches::Feature.new, collector: Collector.new) ⇒ Runner
Returns a new instance of Runner.
6 7 8 9 10 |
# File 'lib/git/lint/runner.rb', line 6 def initialize configuration:, branch: Branches::Feature.new, collector: Collector.new @configuration = configuration @branch = branch @collector = collector end |
Instance Method Details
#call(commits: branch.commits) ⇒ Object
12 13 14 15 |
# File 'lib/git/lint/runner.rb', line 12 def call commits: branch.commits commits.map { |commit| check commit } collector end |