Skip to content

Commit

Permalink
Update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
drexed committed Oct 5, 2024
1 parent afc4799 commit 1511fdf
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -161,8 +161,11 @@ method which automatically delegates to `context`.
| ---------- | ------ | ------- | ----------- |
| `from` | Symbol, String | `:context` | The object containing the attribute. |
| `types` | Symbol, String, Array | | The allowed class types of the attribute value. |
| `required` | Boolean | false | The attribute must be passed to the context or delegatable (no matter the value). |
| `filled` | Boolean | false | The attribute value must be not be `nil`. |
| `required` | Boolean | `false` | The attribute must be passed to the context or delegatable (no matter the value). |
| `filled` | Boolean | `false` | The attribute value must be not be `nil`. |

> [!NOTE]
> If `filled: true` any `NilClass` from `types` option will be removed.
```ruby
class CalculatePower < Lite::Command::Base
Expand Down

0 comments on commit 1511fdf

Please sign in to comment.