Class: Harbinger::Reporters::NullReporter
- Inherits:
-
Object
- Object
- Harbinger::Reporters::NullReporter
- Defined in:
- lib/harbinger/reporters/null_reporter.rb
Instance Attribute Summary collapse
-
#context ⇒ Object
readonly
Returns the value of attribute context.
Instance Method Summary collapse
- #accept(message) ⇒ Object
-
#initialize(context, config = {}) ⇒ NullReporter
constructor
A new instance of NullReporter.
Constructor Details
#initialize(context, config = {}) ⇒ NullReporter
Returns a new instance of NullReporter.
5 6 7 |
# File 'lib/harbinger/reporters/null_reporter.rb', line 5 def initialize(context, config = {}) @context = context end |
Instance Attribute Details
#context ⇒ Object (readonly)
Returns the value of attribute context.
3 4 5 |
# File 'lib/harbinger/reporters/null_reporter.rb', line 3 def context @context end |
Instance Method Details
#accept(message) ⇒ Object
9 10 11 |
# File 'lib/harbinger/reporters/null_reporter.rb', line 9 def accept() .append('nil', context.class.to_s, context.inspect) end |