Created
December 23, 2008 20:44
-
-
Save szimek/39455 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
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'] |
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
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