A library to encode, decode and play morse code
-
Add the dependency to your
shard.yml
:dependencies: morse: github: r00ster91/morse
-
Run
shards install
require "morse"
# Encode text to morse code:
morse_code = Morse.encode("hello") # => ".... . .-.. .-.. ---"
# Decode morse code to text:
Morse.decode(morse_code) # => "HELLO"
# Or play morse code: (this will play sounds)
Morse.play(morse_code)
- Fork it (https://github.com/r00ster91/morse/fork)
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request
- r00ster - creator and maintainer