Update crystal.html.markdown

attr_accessor -> property
This commit is contained in:
Daniel Amireh 2017-11-13 20:33:44 +01:00 committed by GitHub
parent 3e52b2e2c4
commit b777242fb7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -422,7 +422,7 @@ class Human
@name @name
end end
# The above functionality can be encapsulated using the attr_accessor method as follows # The above functionality can be encapsulated using the propery method as follows
property :name property :name
# Getter/setter methods can also be created individually like this # Getter/setter methods can also be created individually like this