Method: Ears::Consumer::InvalidReturnError#initialize

Defined in:
lib/ears/consumer.rb

#initialize(value) ⇒ InvalidReturnError

Returns a new instance of InvalidReturnError.


9
10
11
12
13
# File 'lib/ears/consumer.rb', line 9

def initialize(value)
  super(
    "#work must return :ack, :reject or :requeue, received #{value.inspect} instead",
  )
end