mirror of
https://github.com/ruby/ruby.git
synced 2025-08-16 05:59:00 +02:00
19 lines
292 B
Ruby
19 lines
292 B
Ruby
# 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
|