RuboCop and Parser make it easy to statically process and rewrite Ruby. This code rewrites methods to use `*arguments` instead of `*args`.pic.twitter.com/ABlGyGTaqN
You can add location information to your Tweets, such as your city or precise location, from the web and via third-party applications. You always have the option to delete your Tweet location history. Learn more
This is a full script too, not an isolated example. It globs over everything in the `lib` directory and writes the new source to the file.
Took ~20min to write a separate script earlier to detect and rewrite code unnecessarily spread over multiple lines.
I'm rewriting with @whitequark's parser. I use RuboCop for 2 helper methods here but the powerful lightweight static rewrite is all Parser.
I want a command line program one day where I can specify these rewrites. Something like $ rewrite '(restarg :args)' '(restarg :arguments)'
Clang has something similar. It is generally great direction to go 
Nice. If I can easily see the AST for any sample code (for Ruby I can do ruby-parse -e 'foo(bar)') then AST rewrites sound way better!
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.