public
Last active

  • Download Gist
morse.rb
Ruby
1
def morse s;26.times{|i|s.gsub!(/#{(97+i).chr}/i,%w[.- -... -.-. -.. . ..-. --. .... .. .--- -.- .-.. -- -. --- .--. --.- .-. ... - ..- ...- .-- -..- -.-- --..][i])};s;end

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.