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:
@@ -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
|
||||
|
Reference in New Issue
Block a user