Created
February 13, 2010 14:23
-
-
Save skorfmann/303473 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'rubygems' | |
#doesn't work as expected. conflicts with utility belt | |
if ENV.include?('RAILS_ENV') | |
if !Object.const_defined?('RAILS_DEFAULT_LOGGER') | |
require 'logger' | |
Object.const_set('RAILS_DEFAULT_LOGGER', Logger.new(STDOUT)) | |
end | |
require 'hirb' | |
Hirb.enable | |
puts "preferences loaded from ~/.irbrc. ActiveRecord logging is turned on." | |
end | |
class Object | |
# easy way to list an object's methods without clutter | |
def local_methods | |
(methods - Object.instance_methods).sort | |
end | |
end | |
require 'utility_belt' | |
load 'utility_belt/utility_belt.rb' | |
require 'looksee/shortcuts' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment