Skip to content

Instantly share code, notes, and snippets.

@EvanBurchard
Forked from bcardarella/gist:101717
Created April 28, 2009 19:51
Show Gist options
  • Save EvanBurchard/103355 to your computer and use it in GitHub Desktop.
Save EvanBurchard/103355 to your computer and use it in GitHub Desktop.
require 'rubygems'
require 'wirble'
require 'pp'
Wirble.init
Wirble.colorize
class Object
def local_methods(regex = nil)
(methods - Object.instance_methods).grep(/#{regex}/).sort
end
end
if ENV.include?("RAILS_ENV") && !Object.const_defined?("RAILS_DEFAULT_LOGGER")
require 'logger'
RAILS_DEFAULT_LOGGER = Logger.new(STDOUT)
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment