Skip to content

Instantly share code, notes, and snippets.

@presidentbeef
Created May 17, 2012 16:33
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 presidentbeef/2720022 to your computer and use it in GitHub Desktop.
Save presidentbeef/2720022 to your computer and use it in GitHub Desktop.
Show ruby_parser output on command line
#!/usr/bin/env ruby
require 'rubygems'
require 'ruby_parser'
require 'pp'
pp RubyParser.new.parse ARGV[0]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment