Class: Harbinger::Reporters::NullReporter

Inherits:
Object
  • Object
show all
Defined in:
lib/harbinger/reporters/null_reporter.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#contextObject (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(message)
  message.append('nil', context.class.to_s, context.inspect)
end