mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2024-12-23 17:41:41 +00:00
Update crystal.html.markdown
attr_accessor -> property
This commit is contained in:
parent
3e52b2e2c4
commit
b777242fb7
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user