Class: ValidationErrorReporter::Notifiers::Console
- Inherits:
-
Object
- Object
- ValidationErrorReporter::Notifiers::Console
- Defined in:
- lib/validation_error_reporter/notifiers/console.rb
Instance Attribute Summary collapse
-
#formatter ⇒ Object
Returns the value of attribute formatter.
-
#printer ⇒ Object
Returns the value of attribute printer.
Instance Method Summary collapse
- #finalize ⇒ Object
-
#initialize(configuration, printer = $stdout) ⇒ Console
constructor
A new instance of Console.
- #notify(message) ⇒ Object
Constructor Details
Instance Attribute Details
#formatter ⇒ Object
Returns the value of attribute formatter.
4 5 6 |
# File 'lib/validation_error_reporter/notifiers/console.rb', line 4 def formatter @formatter end |
#printer ⇒ Object
Returns the value of attribute printer.
4 5 6 |
# File 'lib/validation_error_reporter/notifiers/console.rb', line 4 def printer @printer end |
Instance Method Details
#finalize ⇒ Object
14 15 |
# File 'lib/validation_error_reporter/notifiers/console.rb', line 14 def finalize end |
#notify(message) ⇒ Object
10 11 12 |
# File 'lib/validation_error_reporter/notifiers/console.rb', line 10 def notify() printer.puts @formatter.format() end |