Skip to content

Instantly share code, notes, and snippets.

@danbernier
Created September 11, 2011 01:13
Show Gist options
  • Save danbernier/1209038 to your computer and use it in GitHub Desktop.
Save danbernier/1209038 to your computer and use it in GitHub Desktop.
stop_words_arg = case stop_words_arg
when :guess then guess_language(string)
when Symbol then stop_words(stop_words_arg)
when Java::CueLangStop::StopWords then stop_words_arg
when nil then nil # is this one really necessary? it documents, but it seems overkill
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment