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, #deconstruct, #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
162 |
# File 'lib/decoding/result.rb', line 162 def err? = true |
#map_err ⇒ Object
163 |
# File 'lib/decoding/result.rb', line 163 def map_err = self.class.new(yield value) |
#unwrap_err(_) ⇒ Object
164 |
# File 'lib/decoding/result.rb', line 164 def unwrap_err(_) = value |