Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
dogweather committed May 2, 2024
1 parent a017d06 commit dd4d5cd
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,7 @@ class ImmutableDog < ValidatedObject::Base
end
```

> `attr_reader` followed by `validates` is such a common pattern that
> there's a second DSL which wraps them up into one call: `validates_attr`.
### `attr_reader` followed by `validates` is such a common pattern that there's a second DSL which wraps them up into one call: `validates_attr`.

Here's the immutable version of `Dog` re-written with the new, simplified DSL:

Expand Down

0 comments on commit dd4d5cd

Please sign in to comment.