From dd4d5cdd565314f04c25c7533eb0f3b3b7cf7155 Mon Sep 17 00:00:00 2001 From: Robb Shecter Date: Thu, 2 May 2024 08:54:13 -0600 Subject: [PATCH] Update README.md --- README.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/README.md b/README.md index a642e36..dfadad9 100644 --- a/README.md +++ b/README.md @@ -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: