![]() |
Hash#store() is a Hash class method that returns an add-on value with the key given by the key-value argument.
Example #1 : Ruby
Output : Hash a store form : 67 Hash b store form : 467 Hash c store form : 647 Example #2 : Ruby
Output : Hash a store form : 67 Hash b store form : 467 Hash c store form : 647 {"a"=>100, "b"=>200, "e"=>67} {"a"=>100, "d"=>467} {"a"=>100, "c"=>300, "b"=>200, "g"=>647}
|
Reffered: https://www.geeksforgeeks.org
Ruby |
Related |
---|
![]() |
![]() |
![]() |
![]() |
![]() |
Type: | Geek |
Category: | Coding |
Sub Category: | Tutorial |
Uploaded by: | Admin |
Views: | 9 |