Skip to content

Commit

Permalink
Update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
drexed committed Oct 2, 2024
1 parent 7b4b4a6 commit 69b4717
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,6 @@ It returns the command instance in a frozen state.
These will never call will never raise an execption, but will
be kept track of in its internal state.

**NOTE:** Class calls is the prefered format due to its readability.

```ruby
# Class call
CalculatePower.call(...)
Expand All @@ -74,11 +72,15 @@ caculator = CalculatePower.new(...).call
#=> <CalculatePower ...>
```

> [!TIP]
> Class calls is the prefered format due to its readability.
Commands can be called with a `!` bang method to raise a
`Lite::Command::Fault` based exception or the original
`StandardError` based exception.

```ruby
CalculatePower.new(...).call!
CalculatePower.call!(...)
#=> raises Lite::Command::Fault
```
Expand Down

0 comments on commit 69b4717

Please sign in to comment.