Advertisement
Guest User

ruby puts

a guest
Nov 26th, 2011
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ruby 0.22 KB | None | 0 0
  1. inst_section = {
  2.   'cello'     => %w{ 1 2 3 4 5 6 },
  3.   'clarinet'  => 'woodwind'
  4. }
  5.  
  6. puts inst_section['cello'][2]
  7.  
  8. inst_section = {
  9.   :cello      => %w{ 1 2 3 4 5 6 },
  10.   :clarinet   => 'woodwind'
  11. }
  12.  
  13. p inst_section[:cello][2]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement