Skip to content

Instantly share code, notes, and snippets.

@redsquirrel
Created June 11, 2012 16:31
Show Gist options
  • Save redsquirrel/2911099 to your computer and use it in GitHub Desktop.
Save redsquirrel/2911099 to your computer and use it in GitHub Desktop.
I need a gem. It should have 2 functions.
Both functions take a string and a list of words.
The first returns the string with all words in the list obfuscated.
The second returns data that contains the list of words and their associated frequency.
Thanks.
@fakefarm
Copy link

Hey @redsquirrel,

Couple questions;
(Line 3) - what is the difference between a 'string' and 'a list of words'? (Are they not the same thing?)
(Line 5) By 'obfuscate' , I'm not sure if you mean the words should be jumbled, or?
Would it be too much to ask for sample input / output for each method?

Thanks!

@redsquirrel
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment