Skip to content

Instantly share code, notes, and snippets.

@SpringMT
Created May 20, 2014 12:35
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 SpringMT/4956aab7ec9321179698 to your computer and use it in GitHub Desktop.
Save SpringMT/4956aab7ec9321179698 to your computer and use it in GitHub Desktop.
$ codemod -m -d ./app --extensions rb Foo Bar
./app/controllers/hoge_controller.rb:7
def hoge
- foo = Foo.new options
+ foo = BAr.new options
Accept change (y = yes [default], n = no, e = edit, A = yes to all, E = yes+edit)?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment