Skip to content

Instantly share code, notes, and snippets.

@cpetschnig
Created April 28, 2010 08:09
Show Gist options
  • Select an option

  • Save cpetschnig/381859 to your computer and use it in GitHub Desktop.

Select an option

Save cpetschnig/381859 to your computer and use it in GitHub Desktop.
My irb customization file
require 'rubygems'
irb_extensions = []
begin
# load wirble
require 'wirble'
# start wirble (with color)
Wirble.init
Wirble.colorize
irb_extensions << "Wirble"
rescue LoadError => err
warn "Couldn't load Wirble: #{err}"
end
class Object
def xmethods
(self.methods - Object.new.methods).sort
end
end
irb_extensions << "Object#xmethods"
puts "Custom irb extensions: #{irb_extensions.join(', ')}" unless irb_extensions.empty?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment