Sha256: 7535210db9ae8fe012f1ae9d12d01629de9ff03f7348fe2bdff5e66579a9a8a1
Contents?: true
Size: 652 Bytes
Versions: 2
Compression:
Stored size: 652 Bytes
Contents
# frozen_string_literal: true require "pry" require "zeitwerk" require_relative "pry-byetypo/version" require_relative "pry-byetypo/setup/application_dictionary" require_relative "pry-byetypo/exceptions_handler" module Pry::Byetypo Pry.config.hooks.add_hook(:before_session, :eager_loading) do |output, exception, pry| Setup::ApplicationDictionary.new end # TODO: Adds max_attempts # TODO: If max_attempt reached clean the last entries (eg: max entry 3 has been reached, we remove the last 3 history entries) Pry.config.exception_handler = proc do |output, exception, pry| ExceptionsHandler.call(output, exception, pry) end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
pry-byetypo-1.0.2 | lib/pry-byetypo.rb |
pry-byetypo-1.0.0 | lib/pry-byetypo.rb |