Skip to content

Commit 5d0a343

Browse files
committed
[docs] small Usage improvements
1 parent 2bf1730 commit 5d0a343

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

README.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,9 @@ Or install it yourself as:
3030
- Your class should implement a `#call` method
3131
- Return the _result_ via `self.result=`
3232
- Add _errors_ via `self.errors<<`
33+
- Check the status via the provided `#success?` or `#failure?` methods
3334

34-
**Example:**
35+
### Example
3536

3637
First, you should create a _Serviz_ class:
3738

@@ -77,7 +78,9 @@ if operation.failure?
7778
end
7879
```
7980

80-
You may want to use the _block_ syntax:
81+
### Block syntax
82+
83+
You may like to use the _block_ syntax:
8184

8285
```ruby
8386
RegisterUser.call(user) do |operation|

0 commit comments

Comments
 (0)