Sha256: 81d3806fd7196f9a4f671e8c8f13abd6d8ed1d3f5698c35e8969b1ccaf92f573

Contents?: true

Size: 292 Bytes

Versions: 9

Compression:

Stored size: 292 Bytes

Contents

# frozen_string_literal: true

module IRB
  # :stopdoc:

  module Command
    class DisableIrb < Base
      category "IRB"
      description "Disable binding.irb."

      def execute(*)
        ::Binding.define_method(:irb) {}
        IRB.irb_exit
      end
    end
  end

  # :startdoc:
end

Version data entries

9 entries across 9 versions & 3 rubygems

Version Path
minato_ruby_api_client-0.2.2 vendor/bundle/ruby/3.2.0/gems/irb-1.14.0/lib/irb/command/disable_irb.rb
irb-1.14.3 lib/irb/command/disable_irb.rb
irb-1.14.2 lib/irb/command/disable_irb.rb
irb-1.14.1 lib/irb/command/disable_irb.rb
blacklight-spotlight-3.6.0.beta8 vendor/bundle/ruby/3.2.0/gems/irb-1.13.2/lib/irb/command/disable_irb.rb
irb-1.14.0 lib/irb/command/disable_irb.rb
irb-1.13.2 lib/irb/command/disable_irb.rb
irb-1.13.1 lib/irb/command/disable_irb.rb
irb-1.13.0 lib/irb/command/disable_irb.rb