1
0
mirror of https://github.com/adambard/learnxinyminutes-docs.git synced 2025-08-13 18:24:39 +02:00

Fix comment of attr_accessor. Ruby-RU

This commit is contained in:
Ivan Solovev
2020-04-19 17:48:39 +03:00
committed by GitHub
parent ecca2c3837
commit 4d572a9994

View File

@@ -480,7 +480,7 @@ class Human
@name
end
# Тоже самое можно определить с помощью att_accessor
# Тоже самое можно определить с помощью attr_accessor
attr_accessor :name
# Также можно создать методы только для записи или чтения