Class: Switchman::Parallel::ResultWrapper
- Inherits:
-
Object
- Object
- Switchman::Parallel::ResultWrapper
- Defined in:
- lib/switchman/parallel.rb
Instance Attribute Summary collapse
-
#result ⇒ Object
readonly
Returns the value of attribute result.
Instance Method Summary collapse
-
#initialize(result) ⇒ ResultWrapper
constructor
A new instance of ResultWrapper.
Constructor Details
#initialize(result) ⇒ ResultWrapper
Returns a new instance of ResultWrapper.
43 44 45 46 47 48 49 50 |
# File 'lib/switchman/parallel.rb', line 43 def initialize(result) @result = begin Marshal.dump(result) && result rescue UndumpableResult.new(result) end end |
Instance Attribute Details
#result ⇒ Object (readonly)
Returns the value of attribute result.
41 42 43 |
# File 'lib/switchman/parallel.rb', line 41 def result @result end |