Sha256: 9d5535a9aec16910eec0d69e4ee87bb6c9fdb2920c59f7c23262933585f9621b

Contents?: true

Size: 755 Bytes

Versions: 1

Compression:

Stored size: 755 Bytes

Contents

# check if loaded_directly to decide if Irbtools.init should be called
standalone =  !(defined? Irbtools)

# define version
module Irbtools
  module More
    VERSION = '1.6.0'
  end
end

# require base package
if standalone
  begin
    require 'irbtools/configure'
  rescue LoadError
    raise "Sorry, the irbtools-more package couldn't load, because the irbtools gem is not available"
  end
end

# # # libraries

# Better auto-completion
Irbtools.add_library :bond, :thread => 'more_2' do
  Bond.start :gems => %w[irbtools]
end

# Object#l method for inspecting its load path
Irbtools.add_library 'looksee', :late_thread => :c do
  Looksee::ObjectMixin.rename :l
  class Object; alias ll l end
end

# load now
if standalone
  Irbtools.start
end

# J-_-L

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
irbtools-more-1.6.0 lib/irbtools/more.rb