Created
July 10, 2009 17:41
-
-
Save mtrudel/144652 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 'irb/completion' | |
require 'irb/ext/save-history' | |
ARGV.concat [ "--readline", "--prompt-mode", "simple" ] | |
IRB.conf[:SAVE_HISTORY] = 100 | |
IRB.conf[:HISTORY_FILE] = "#{ENV['HOME']}/.irb-save-history" | |
IRB.conf[:AUTO_INDENT]=true | |
require 'rubygems' | |
require 'wirble' | |
Wirble.init | |
Wirble.colorize | |
class Object | |
def local_methods | |
(methods - Object.instance_methods).sort | |
end | |
end | |
# Add a helper to deal with the fact that logger is not defined in | |
# in script/console | |
unless Object.respond_to?(:logger) || Object.new.respond_to?(:logger) | |
def logger | |
RAILS_DEFAULT_LOGGER if defined? RAILS_DEFAULT_LOGGER | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment