Sha256: becd6767dcb80ffcbb42e59b971da3ea2cf4c1e404411a28c739a10a390f9967

Contents?: true

Size: 1.07 KB

Versions: 3

Compression:

Stored size: 1.07 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. You can also find a
# nice, HTMLified version of the README content at http://utilitybelt.rubyforge.org.

FLYRB_IRB_STARTUP_PROCS = {} unless Object.const_defined? :FLYRB_IRB_STARTUP_PROCS

%w{rubygems active_support flyrb/equipper}.each {|internal_library| require internal_library}

if Object.const_defined? :IRB

  # Called when the irb session is ready, after any external libraries have been loaded. This
  # allows the user to specify which gadgets in the utility belt to equip. (Kind of pushing the
  # metaphor, but hey, what the hell.)
  IRB.conf[:IRB_RC] = Proc.new do
    Flyrb.equip(:defaults) unless Flyrb.equipped?
    FLYRB_IRB_STARTUP_PROCS.each {|symbol, proc| proc.call}
  end
  
  # default: dark background
  Flyrb::Themes.background(:dark) if defined? Flyrb::Themes
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
flyrb-1.0.0.c lib/flyrb.rb
flyrb-1.0.0.b lib/flyrb.rb
flyrb-1.0.0.a lib/flyrb.rb