Create a gist now

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Widetooter
#!/usr/bin/env ruby
abort "please write your string as an argument" unless ARGV[0]
puts ARGV.join(' ').gsub(/[^a-z \n]/i, '').chars.map { |letter|
if letter.ord.between? 'a'.ord, 'z'.ord then
letter = " :#{letter}_wide:"
else
letter = letter
end }.join
exit 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment