Ben’s Morse Code Module


[email protected] www.BenSinclair.com

This software is released into the public domain with no warranty.

Usage:

require ‘morse’

Morse.encode ‘hello world’ => “.… . .-.. .-.. — .– — .-. .-.. -..”

Morse.decode ‘… — …’ => “HELLO WORLD”