Sha256: 8679e7312556a48a57ee80634c0137699fe50bf56aea5a881d565b9f1d5ee5b8
Contents?: true
Size: 1.3 KB
Versions: 1
Compression:
Stored size: 1.3 KB
Contents
# This started as my (Giles Bowkett's) .irbrc file, turned into a recipe on IRB for the Pragmatic Programmers, # and soon became a scrapbook of cool code snippets from all over the place. All the RDoc lives in the README. # Check that file for usage information, authorship, copyright, and extensive details. This file contains the # actual code (duh), and a bunch of links to relevant blog posts. You can also find a nice, HTMLified version # of the README content at http://utilitybelt.rubyforge.org. UTILITY_BELT_IRB_STARTUP_PROCS = {} %w{rubygems platform wirble net/http tempfile}.each {|library| require library} %w{init colorize}.each {|message| Wirble.send(message)} %w{mac_clipboard is_an pastie themes irb_verbosity_control rails_verbosity_control command_history not language_greps rails_finder_shortcut amazon_upload_shortcut irb_options interactive_editor string_to_proc symbol_to_proc with}.each {|internal_library| require internal_library} # default: dark background UtilityBelt::Themes.background(:dark) # Called when the irb session is ready, after any external libraries have been loaded. I can't # remember why I did this. it might be a cargo cult thing. IRB.conf[:IRB_RC] = lambda do UTILITY_BELT_IRB_STARTUP_PROCS.each {|symbol, proc| proc.call} end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
utility_belt-1.0.0 | lib/utility_belt.rb |