mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2024-12-23 07:12:31 +03:00
Update ruby-ru.html.markdown
This commit is contained in:
parent
ad4d6f3c1e
commit
142d33340a
@ -158,6 +158,7 @@ array << 6 #=> [1, 2, 3, 4, 5, 6]
|
||||
hash = {'color' => 'green', 'number' => 5}
|
||||
|
||||
hash.keys #=> ['color', 'number']
|
||||
hash.values #=> ['green', 5]
|
||||
|
||||
# Значение в хэше легко может быть найдено по ключу:
|
||||
hash['color'] #=> 'green'
|
||||
|
Loading…
Reference in New Issue
Block a user