Exception: Rjq::RuntimeError

Inherits:
Error
  • Object
show all
Defined in:
lib/rjq/errors.rb

Direct Known Subclasses

BreakSignal, ErrorValue, ResourceLimitError, TypeError

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#outputsObject (readonly)

Returns the value of attribute outputs.



11
12
13
# File 'lib/rjq/errors.rb', line 11

def outputs
  @outputs
end

Instance Method Details

#prepend_outputs(values) ⇒ Object



13
14
15
16
# File 'lib/rjq/errors.rb', line 13

def prepend_outputs(values)
  @outputs = Array(values) + Array(@outputs)
  self
end

#take_outputsObject



18
19
20
21
22
# File 'lib/rjq/errors.rb', line 18

def take_outputs
  values = Array(@outputs)
  @outputs = nil
  values
end