summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authornagachika <nagachika@ruby-lang.org>2022-10-21 13:39:45 +0900
committernagachika <nagachika@ruby-lang.org>2022-10-21 13:39:45 +0900
commit82b6b9c5124c446c64a5cca144abdcf933e7774f (patch)
treebb023d423e1f4df9220574cf0f2587f934749621 /lib
parente574190310c033ae807399e4197b0512389cbd65 (diff)
merge revision(s) 6946263a2994257c6240e52a365700dc573c7ed4:
[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(-)
Diffstat (limited to 'lib')
-rw-r--r--lib/mkmf.rb18
1 files changed, 6 insertions, 12 deletions
diff --git a/lib/mkmf.rb b/lib/mkmf.rb
index dc43aaebf7..ff854b3c30 100644
--- a/lib/mkmf.rb
+++ b/lib/mkmf.rb
@@ -7,9 +7,7 @@ require 'rbconfig'
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
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
##
@@ -1364,8 +1356,10 @@ SRC
# :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)