Class: Munge::Reporter
- Inherits:
-
Object
- Object
- Munge::Reporter
- Defined in:
- lib/munge/reporter.rb
Instance Method Summary collapse
- #call(item, relpath, write_status) ⇒ Object
- #done ⇒ Object
-
#initialize(formatter:, verbosity:) ⇒ Reporter
constructor
A new instance of Reporter.
- #start ⇒ Object
Constructor Details
#initialize(formatter:, verbosity:) ⇒ Reporter
Returns a new instance of Reporter.
3 4 5 6 |
# File 'lib/munge/reporter.rb', line 3 def initialize(formatter:, verbosity:) @formatter = formatter @verbosity = verbosity end |
Instance Method Details
#call(item, relpath, write_status) ⇒ Object
8 9 10 |
# File 'lib/munge/reporter.rb', line 8 def call(item, relpath, write_status) @formatter.call(item, relpath, write_status, should_print?(write_status)) end |
#done ⇒ Object
16 17 18 |
# File 'lib/munge/reporter.rb', line 16 def done @formatter.done end |
#start ⇒ Object
12 13 14 |
# File 'lib/munge/reporter.rb', line 12 def start @formatter.start end |