Skip to content

Instantly share code, notes, and snippets.

@szimek
Created December 23, 2008 20:44
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 szimek/39455 to your computer and use it in GitHub Desktop.
Save szimek/39455 to your computer and use it in GitHub Desktop.
IRB.conf[:AUTO_INDENT]=true
require 'rubygems'
require 'pp'
require 'what_methods'
require 'wirble'
Wirble.init
Wirble.colorize
# Easily print methods local to an object's class
class Object
def local_methods
(methods - Object.instance_methods).sort
end
end
#
# Aliases
#
alias q exit
#
# Load Rails specific extensions
#
load File.dirname(__FILE__) + '/.railsrc' if $0 == 'irb' && ENV['RAILS_ENV']
IRB.conf[:IRB_RC] = Proc.new do
# Log to STDOUT
ActiveRecord::Base.logger = Logger.new(STDOUT)
# Aliases
alias :r! :reload!
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment