mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2025-08-06 14:56:54 +02:00
Update crystal.html.markdown
attr_accessor -> property
This commit is contained in:
@@ -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
|
||||||
|
Reference in New Issue
Block a user