Paste Search Dynamic
Recent pastes
word put register
  1.  
  2. # your code goes here
  3. REGISTER = {
  4. black: 0,
  5. brown: 1,
  6. red: 2,
  7. orange: 3,
  8. yellow: 4,
  9. green: 5,
  10. blue: 6,
  11. violet: 7,
  12. grey: 8,
  13. white: 9
  14. }
  15. words = %w[brown black]
  16.  
  17. words.each { |word| puts REGISTER[word.to_sym] }
Parsed in 0.001 seconds