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, #unwrap!
Constructor Details
This class inherits a constructor from Decoding::Result
Instance Method Details
#err? ⇒ Boolean
174 |
# File 'lib/decoding/result.rb', line 174 def err? = true |
#map_err ⇒ Object
175 |
# File 'lib/decoding/result.rb', line 175 def map_err = self.class.new(yield value) |
#unwrap_err(_) ⇒ Object
176 |
# File 'lib/decoding/result.rb', line 176 def unwrap_err(_) = value |