Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
dogweather authored May 2, 2024
1 parent f47bf46 commit 3bee65b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ class Dog < ValidatedObject::Base
end
```

We can make it immutable with `attr_reader`:
Alternatively, we could make it immutable with `attr_reader`:

```ruby
class ImmutableDog < ValidatedObject::Base
Expand All @@ -62,7 +62,7 @@ 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`.
Here's the immutable version of `Dog` re-written with the simplified DSL:
Here's the immutable version of `Dog` re-written with the new, simplified DSL:

```ruby
class ImmutableDog < ValidatedObject::Base
Expand Down

0 comments on commit 3bee65b

Please sign in to comment.