Advertisement
Albinutte

Ruby HM

Feb 17th, 2016
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ruby 0.14 KB | None | 0 0
  1. test = {
  2.     0 => 23,
  3.     1 => "hello",
  4.     15   => 34.5,
  5.     "mamma mia!"  => 42,
  6. }
  7.  
  8. puts test["mamma mia!"] == 42
  9. puts test[1] == "hello"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement