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 6c2e02a commit 3b24540
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ required, type-checked attribute:

```ruby
class Person < ValidatedObject::Base
validated_attr :name, type: String, presence: true
attr_reader :name
validates :name, presence: true
end

# Instantiating it runs the validations.
Expand Down

0 comments on commit 3b24540

Please sign in to comment.