Advertisement
cuckoometal

morse code hashmap

May 19th, 2016
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ruby 0.66 KB | None | 0 0
  1. @morse = {
  2.             :A => '.-',
  3.             :B => '-...',
  4.             :C => '-.-.',
  5.             :D => '-..',
  6.             :E => '.',
  7.             :F => '..-.',
  8.             :G => '--.',
  9.             :H => '....',
  10.             :I => '..',
  11.             :J => '.---',
  12.             :K => '-.-',
  13.             :L => '.-..',
  14.             :M => '--',
  15.             :N => '-.',
  16.             :O => '---',
  17.             :P => :'.--.',
  18.             :Q => '--.-',
  19.             :R => '.-.',
  20.             :S => '...',
  21.             :T => '-',
  22.             :U => '..-',
  23.             :V => '...-',
  24.             :W => '.--',
  25.             :X => '-..-',
  26.             :Y => '-.--',
  27.             :Z => '--..',
  28.             :' ' => ' ' ,
  29.             :N1 => '.----',
  30.             :N2 => '..---',
  31.             :N3 => '...--',
  32.             :N4 => '....-',
  33.             :N5 => '.....',
  34.             :N6 => '-....',
  35.             :N7 => '--...',
  36.             :N8 => '---..',
  37.             :N9 => '----.',
  38.             :N0 => '-----'
  39.         }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement