Skip to content

Commit

Permalink
Add methods description to README
Browse files Browse the repository at this point in the history
  • Loading branch information
AnotherRegularDude committed Apr 20, 2021
1 parent bc78837 commit d637831
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,8 @@ Methods:
- `failure?` – returns `true` for failure result and `false` for success result
- `value!` – unwraps a result object, returns the value for success result, and throws an error for failure result
- `value_or(other_value, &block)` – returns a value for success result or `other_value` for failure result (either calls `block` in case it given)
- `or(&block)` - calls block for failure result, for success result does nothing
- `or(success_proc, failure_proc)` - for success result calls success_proc with result value in args, for failure result calls failure_proc with error in args.


### Configuration
Expand Down

0 comments on commit d637831

Please sign in to comment.