Method: Gitlab::Fp::Result#unwrap
- Defined in:
- lib/gitlab/fp/result.rb
#unwrap ⇒ Object
“#unwrap” corresponds to “unwrap” in Rust.
61 62 63 |
# File 'lib/gitlab/fp/result.rb', line 61 def unwrap ok? ? value : raise("Called Result#unwrap on an 'err' Result") end |