From 562b9fc525334eb7d77f5eb496407239efd834f2 Mon Sep 17 00:00:00 2001 From: Stan Lo Date: Sat, 14 Dec 2024 01:08:28 +0800 Subject: [PATCH] [ruby/irb] Avoid generating documentation pages for internal components (https://github.com/ruby/irb/pull/1047) https://github.com/ruby/irb/commit/f57025a35e --- lib/irb.rb | 2 +- lib/irb/command/base.rb | 10 +++------- 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/lib/irb.rb b/lib/irb.rb index f5a875d08b..de1cdf026a 100644 --- a/lib/irb.rb +++ b/lib/irb.rb @@ -879,7 +879,7 @@ require_relative "irb/pager" module IRB # An exception raised by IRB.irb_abort - class Abort < Exception;end + class Abort < Exception;end # :nodoc: class << self # The current IRB::Context of the session, see IRB.conf diff --git a/lib/irb/command/base.rb b/lib/irb/command/base.rb index af810ed343..2f39b75cca 100644 --- a/lib/irb/command/base.rb +++ b/lib/irb/command/base.rb @@ -5,13 +5,11 @@ # module IRB - # :stopdoc: - module Command - class CommandArgumentError < StandardError; end + class CommandArgumentError < StandardError; end # :nodoc: class << self - def extract_ruby_args(*args, **kwargs) + def extract_ruby_args(*args, **kwargs) # :nodoc: throw :EXTRACT_RUBY_ARGS, [args, kwargs] end end @@ -57,8 +55,6 @@ module IRB end end - Nop = Base + Nop = Base # :nodoc: end - - # :startdoc: end