We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2bf1730 commit 5d0a343Copy full SHA for 5d0a343
1 file changed
README.md
@@ -30,8 +30,9 @@ Or install it yourself as:
30
- Your class should implement a `#call` method
31
- Return the _result_ via `self.result=`
32
- Add _errors_ via `self.errors<<`
33
+- Check the status via the provided `#success?` or `#failure?` methods
34
-**Example:**
35
+### Example
36
37
First, you should create a _Serviz_ class:
38
@@ -77,7 +78,9 @@ if operation.failure?
77
78
end
79
```
80
-You may want to use the _block_ syntax:
81
+### Block syntax
82
+
83
+You may like to use the _block_ syntax:
84
85
```ruby
86
RegisterUser.call(user) do |operation|
0 commit comments