Files
  • main.rb
main.rb
1
2
3
4
5
6
7
8
9
10
11
12
creatures = Hash.new("No such creature!")
creatures = { "weasels" => 0,
  "puppies" => 6,
  "platypuses" => 3,
  "canaries" => 1,
  "Heffalumps" => 7,
  "Tiggers" => 1
}

puts creatures["puppies"]
puts creatures["Zoidberg"]
ruby 2.5.0p0 (2017-12-25 revision 61468) [x86_64-linux]