Skip to content

Instantly share code, notes, and snippets.

@ahoward
Created September 11, 2010 15:40
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 ahoward/575279 to your computer and use it in GitHub Desktop.
Save ahoward/575279 to your computer and use it in GitHub Desktop.
#! /usr/bin/env ruby
require 'rbconfig'
if ARGV.delete('--json') || ARGV.delete('-jj') || ARGV.delete('-j')
require 'rubygems'
require 'json'
display = lambda{|obj| jj obj}
else
require 'yaml'
display = lambda{|obj| y obj}
end
display[ Config::CONFIG ]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment