Skip to content

Instantly share code, notes, and snippets.

@rbk
Created December 11, 2013 02:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rbk/7904050 to your computer and use it in GitHub Desktop.
Save rbk/7904050 to your computer and use it in GitHub Desktop.
Tut test code
Tut.to_tut( "Wow! Look at this get converted to Tut!" ) { |c| puts c }
# should outout : Wutowut! Lutookut atut tuthutisut gutetut cutonutvuteruttutedut tuto Tututut!
tut_string = ""
Tut.to_tut( "I'm in tut but I want to be in english." ) { |c| tut_string += c }
puts tut_string
# should output : I'mut inut tututut bututut I wutanuttut tuto bute inut enutgutlutisuthut.
Tut.to_english( tut_string ) { |c| print c }
# should output : I'm in tut but I want to be in english.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment