ruby-changes:71461
From: Nobuyoshi <ko1@a...>
Date: Sun, 20 Mar 2022 14:28:59 +0900 (JST)
Subject: [ruby-changes:71461] 6946263a29 (master): [DOC] make internally used classes/methods nodoc
https://git.ruby-lang.org/ruby.git/commit/?id=6946263a29 From 6946263a2994257c6240e52a365700dc573c7ed4 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada <nobu@r...> Date: Sun, 20 Mar 2022 14:26:20 +0900 Subject: [DOC] make internally used classes/methods nodoc Empty class documents are generated even with `:stopdoc:`. --- lib/mkmf.rb | 18 ++++++------------ 1 file changed, 6 insertions(+), 12 deletions(-) diff --git a/lib/mkmf.rb b/lib/mkmf.rb index ef14f3042e..4ced064a8b 100644 --- a/lib/mkmf.rb +++ b/lib/mkmf.rb @@ -7,9 +7,7 @@ require 'rbconfig' https://github.com/ruby/ruby/blob/trunk/lib/mkmf.rb#L7 require 'fileutils' require 'shellwords' -class String - # :stopdoc: - +class String # :nodoc: # Wraps a string in escaped quotes if it contains whitespace. def quote /\s/ =~ self ? "\"#{self}\"" : "#{self}" @@ -32,19 +30,13 @@ class String https://github.com/ruby/ruby/blob/trunk/lib/mkmf.rb#L30 def sans_arguments self[/\A[^()]+/] end - - # :startdoc: end -class Array - # :stopdoc: - +class Array # :nodoc: # Wraps all strings in escaped quotes if they contain whitespace. def quote map {|s| s.quote} end - - # :startdoc: end ## @@ -1359,8 +1351,10 @@ SRC https://github.com/ruby/ruby/blob/trunk/lib/mkmf.rb#L1351 # :stopdoc: STRING_OR_FAILED_FORMAT = "%s" - def STRING_OR_FAILED_FORMAT.%(x) # :nodoc: - x ? super : "failed" + class << STRING_OR_FAILED_FORMAT # :nodoc: + def %(x) + x ? super : "failed" + end end def typedef_expr(type, headers) -- cgit v1.2.1 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/