Exception: Rjq::BreakSignal
- Inherits:
-
RuntimeError
- Object
- StandardError
- Error
- RuntimeError
- Rjq::BreakSignal
- Defined in:
- lib/rjq/errors.rb
Instance Attribute Summary collapse
-
#label ⇒ Object
readonly
Returns the value of attribute label.
-
#outputs ⇒ Object
readonly
Returns the value of attribute outputs.
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Instance Method Summary collapse
-
#initialize(label, value = nil, outputs: nil) ⇒ BreakSignal
constructor
A new instance of BreakSignal.
Methods inherited from RuntimeError
#prepend_outputs, #take_outputs
Constructor Details
#initialize(label, value = nil, outputs: nil) ⇒ BreakSignal
Returns a new instance of BreakSignal.
69 70 71 72 73 74 |
# File 'lib/rjq/errors.rb', line 69 def initialize(label, value = nil, outputs: nil) @label = label @value = value @outputs = outputs super("break #{label}") end |
Instance Attribute Details
#label ⇒ Object (readonly)
Returns the value of attribute label.
67 68 69 |
# File 'lib/rjq/errors.rb', line 67 def label @label end |
#outputs ⇒ Object (readonly)
Returns the value of attribute outputs.
67 68 69 |
# File 'lib/rjq/errors.rb', line 67 def outputs @outputs end |
#value ⇒ Object (readonly)
Returns the value of attribute value.
67 68 69 |
# File 'lib/rjq/errors.rb', line 67 def value @value end |