Class: Decoding::Err
Overview
The Err value represents the result of an unsuccessful computation.
Instance Attribute Summary
Attributes inherited from Result
Instance Method Summary collapse
Methods inherited from Result
all, #and, #and_then, #eql?, err, #initialize, #inspect, #map, ok, #ok?, #to_result, #unwrap
Constructor Details
This class inherits a constructor from Decoding::Result
Instance Method Details
#err? ⇒ Boolean
150 |
# File 'lib/decoding/result.rb', line 150 def err? = true |
#map_err ⇒ Object
151 |
# File 'lib/decoding/result.rb', line 151 def map_err = self.class.new(yield value) |