Skip to content

Instantly share code, notes, and snippets.

@shadowbq
Created April 13, 2010 22:51
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 shadowbq/365206 to your computer and use it in GitHub Desktop.
Save shadowbq/365206 to your computer and use it in GitHub Desktop.
ruby .to_?
#find the to_? methods
1.methods.sort.collect {|a| a.match(/to_.*/).to_s}.compact.reject { |s| s.strip.empty? }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment