Skip to content

Instantly share code, notes, and snippets.

@haru01
Created July 16, 2010 22:58
Show Gist options
  • Select an option

  • Save haru01/479032 to your computer and use it in GitHub Desktop.

Select an option

Save haru01/479032 to your computer and use it in GitHub Desktop.
ruby -e 'puts $stdin.read.gsub(/method\s+([a-zA-Z"]*),\s+([a-z"]*)/){ "assert #{$2}, #{$1}" }'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment