Exception: Parallel::Break
- Inherits:
-
StandardError
- Object
- StandardError
- Parallel::Break
- Defined in:
- lib/parallel.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Class Method Summary collapse
-
._load(data) ⇒ Object
marshal_load that is used for ruby exceptions.
Instance Method Summary collapse
-
#_dump(_depth) ⇒ Object
marshal_dump that is used for ruby exceptions avoid dumping the cause since nobody needs that and it can include undumpable exceptions.
-
#initialize(value = nil) ⇒ Break
constructor
A new instance of Break.
Constructor Details
#initialize(value = nil) ⇒ Break
Returns a new instance of Break.
14 15 16 17 |
# File 'lib/parallel.rb', line 14 def initialize(value = nil) super() @value = value end |
Instance Attribute Details
#value ⇒ Object (readonly)
Returns the value of attribute value.
12 13 14 |
# File 'lib/parallel.rb', line 12 def value @value end |
Class Method Details
._load(data) ⇒ Object
marshal_load that is used for ruby exceptions
26 27 28 |
# File 'lib/parallel.rb', line 26 def self._load(data) new(Marshal.load(data)) end |
Instance Method Details
#_dump(_depth) ⇒ Object
marshal_dump that is used for ruby exceptions avoid dumping the cause since nobody needs that and it can include undumpable exceptions
21 22 23 |
# File 'lib/parallel.rb', line 21 def _dump(_depth) Marshal.dump(@value) end |