Skip to content

Instantly share code, notes, and snippets.

@cbrumelle
Created February 17, 2011 00:46
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 cbrumelle/830680 to your computer and use it in GitHub Desktop.
Save cbrumelle/830680 to your computer and use it in GitHub Desktop.
require 'irb/completion'
ARGV.concat [ "--readline",
"--prompt-mode",
"simple" ]
require 'irb/ext/save-history'
IRB.conf[:SAVE_HISTORY] = 100
IRB.conf[:HISTORY_FILE] = "#{ENV['HOME']}/.irb_history"
# load wirble
require 'rubygems'
require 'wirble'
# start wirble (with color)
Wirble.init
Wirble.colorize
class Object
alias_method :methods_old, :methods
def methods
methods_old.sort
end
def my_methods
methods - self.class.methods
end
end
def stacktrace
begin
raise Exception
rescue Exception => e
puts e.backtrace.join("\n\t")
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment