mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2024-12-23 09:41:36 +00:00
Merge pull request #1349 from chashmeetsingh/patch-1
Update ruby-ru.html.markdown
This commit is contained in:
commit
e57fb68756
@ -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