From 3bee65b050aa19ac330028b3f6a40a2742cfb38e Mon Sep 17 00:00:00 2001 From: Robb Shecter Date: Thu, 2 May 2024 08:51:39 -0600 Subject: [PATCH] Update README.md --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 7545040..e62efb0 100644 --- a/README.md +++ b/README.md @@ -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 @@ -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