Class: Hydra::Listener::Abstract
- Inherits:
-
Object
- Object
- Hydra::Listener::Abstract
- Defined in:
- lib/hydra/listener/abstract.rb
Overview
Abstract listener that implements all the events but does nothing.
Direct Known Subclasses
Instance Method Summary collapse
-
#file_begin(file) ⇒ Object
Fired when a file is started.
-
#file_end(file, output) ⇒ Object
Fired when a file is finished.
-
#initialize(output = $stdout) ⇒ Abstract
constructor
Create a new listener.
-
#testing_begin(files) ⇒ Object
Fired when testing has started.
-
#testing_end ⇒ Object
Fired when testing finishes.
Constructor Details
#initialize(output = $stdout) ⇒ Abstract
Create a new listener.
Output: The IO object for outputting any information. Defaults to STDOUT, but you could pass a file in, or STDERR
10 11 12 |
# File 'lib/hydra/listener/abstract.rb', line 10 def initialize(output = $stdout) @output = output end |
Instance Method Details
#file_begin(file) ⇒ Object
Fired when a file is started
22 23 |
# File 'lib/hydra/listener/abstract.rb', line 22 def file_begin(file) end |
#file_end(file, output) ⇒ Object
Fired when a file is finished
26 27 |
# File 'lib/hydra/listener/abstract.rb', line 26 def file_end(file, output) end |
#testing_begin(files) ⇒ Object
Fired when testing has started
14 15 |
# File 'lib/hydra/listener/abstract.rb', line 14 def testing_begin(files) end |
#testing_end ⇒ Object
Fired when testing finishes
18 19 |
# File 'lib/hydra/listener/abstract.rb', line 18 def testing_end end |