Sha256: c0fe0332f67444ca3f532d500d86cc99aec416efd4f46a3439b61d8dce02bdb0

Contents?: true

Size: 951 Bytes

Versions: 1

Compression:

Stored size: 951 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.7.1'
  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 lookup path
Irbtools.add_library 'looksee', late_thread: :c do
  Looksee::ObjectMixin.rename :l
  class Object; alias lp l; end
end

# repl method
Irbtools.add_library 'binding_of_caller', thread: 'more_3'
Irbtools.add_library 'debugging/repl', thread: 'more_3'

# new guessmethod
Irbtools.add_library 'did_you_mean', thread: 'more_4'

# load now
Irbtools.start if standalone

# J-_-L

Version data entries

1 entries across 1 versions & 1 rubygems

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