Exception: Peruby::LoopControl
- Inherits:
-
StandardError
- Object
- StandardError
- Peruby::LoopControl
- Defined in:
- lib/peruby/errors.rb
Overview
Internal non-local control transfer for loop operators.
Instance Attribute Summary collapse
-
#kind ⇒ Object
readonly
Returns the value of attribute kind.
-
#label ⇒ Object
readonly
Returns the value of attribute label.
Instance Method Summary collapse
-
#initialize(kind, label = nil) ⇒ LoopControl
constructor
A new instance of LoopControl.
Constructor Details
#initialize(kind, label = nil) ⇒ LoopControl
Returns a new instance of LoopControl.
11 12 13 14 15 |
# File 'lib/peruby/errors.rb', line 11 def initialize(kind, label = nil) @kind = kind @label = label super([kind, label].compact.join(' ')) end |
Instance Attribute Details
#kind ⇒ Object (readonly)
Returns the value of attribute kind.
9 10 11 |
# File 'lib/peruby/errors.rb', line 9 def kind @kind end |
#label ⇒ Object (readonly)
Returns the value of attribute label.
9 10 11 |
# File 'lib/peruby/errors.rb', line 9 def label @label end |