Skip to content

Instantly share code, notes, and snippets.

@mattpolito
Created February 27, 2009 22:07
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 mattpolito/71730 to your computer and use it in GitHub Desktop.
Save mattpolito/71730 to your computer and use it in GitHub Desktop.
# load rubygems, wirble and utility_belt
require 'rubygems'
require 'wirble'
require 'utility_belt'
require 'irb/completion'
require 'pp'
# load wirble
Wirble.init
Wirble.colorize
# Log to STDOUT if in Rails
if ENV.include?('RAILS_ENV') && !Object.const_defined?('RAILS_DEFAULT_LOGGER')
require 'logger'
RAILS_DEFAULT_LOGGER = Logger.new(STDOUT)
end
# Easily print methods local to an object's class
class Object
def local_methods
(methods - Object.instance_methods).sort
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment