Module: IRB::Kit

Defined in:
lib/irb/kit.rb,
lib/irb/kit/prompter.rb,
lib/irb/kit/register.rb,
lib/irb/kit/helpers/clip.rb,
lib/irb/kit/helpers/paste.rb,
lib/irb/kit/helpers/search.rb,
lib/irb/kit/handlers/editor.rb,
lib/irb/kit/handlers/paster.rb,
lib/irb/kit/handlers/clipper.rb,
lib/irb/kit/handlers/abstract.rb,
lib/irb/kit/handlers/searcher.rb,
lib/irb/kit/handlers/descender.rb,
lib/irb/kit/helpers/edit_source.rb,
lib/irb/kit/commands/descendants.rb,
lib/irb/kit/handlers/method_editor.rb,
lib/irb/kit/handlers/constant_editor.rb

Overview

Main namespace.

Defined Under Namespace

Modules: Commands, Handlers, Helpers Classes: Prompter, Register

Class Method Summary collapse

Class Method Details

.loader(registry = Zeitwerk::Registry) ⇒ Object



16
17
18
# File 'lib/irb/kit.rb', line 16

def self.loader registry = Zeitwerk::Registry
  @loader ||= registry.loaders.find { |loader| loader.tag == "irb-kit" }
end

.promptObject



24
# File 'lib/irb/kit.rb', line 24

def self.prompt = @prompt ||= Prompter.new.call

.register_commandsObject



20
# File 'lib/irb/kit.rb', line 20

def self.register_commands(*) = Register.new(IRB::Command, :Commands).call(*)

.register_helpersObject



22
# File 'lib/irb/kit.rb', line 22

def self.register_helpers(*) = Register.new(IRB::HelperMethod, :Helpers).call(*)