1
0
mirror of https://github.com/adambard/learnxinyminutes-docs.git synced 2025-08-01 12:30:48 +02:00

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

View File

@@ -422,7 +422,7 @@ class Human
@name
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
# Getter/setter methods can also be created individually like this