Skip to content

Commit 61ab055

Browse files
committed
Fix README example
1 parent 66f914c commit 61ab055

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,11 +50,11 @@ class User
5050
attributes :name, :age, email: 'guest@user.com'
5151
end
5252

53-
User.new(name: 'Matz', age: 22)
53+
user = User.new(name: 'Matz', age: 22)
5454
# => #<User:0x000055bac152f130 @name="Matz", @age=22, @email="guest@user.com">
5555

5656
# EzAttributes will add getters for all fields too.
57-
User.name
57+
user.name
5858
# => "Matz"
5959
```
6060

0 commit comments

Comments
 (0)