Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # gem install ruby2ruby ParseTree
- require 'parse_tree'
- require 'ruby2ruby'
- require 'unified_ruby'
- named_route = :login_url
- named_routes = ActionController::Routing::Routes.named_routes.instance_variable_get '@module'
- sexp = ParseTree.translate named_routes, named_route
- unified = Unifier.new.process sexp
- puts Ruby2Ruby.new.process(unified)
Add Comment
Please, Sign In to add comment