Skip to content

Instantly share code, notes, and snippets.

@skorfmann
Created February 13, 2010 14:23
Show Gist options
  • Save skorfmann/303473 to your computer and use it in GitHub Desktop.
Save skorfmann/303473 to your computer and use it in GitHub Desktop.
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