summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2022-03-20 14:26:20 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2022-03-20 14:26:20 +0900
commit6946263a2994257c6240e52a365700dc573c7ed4 (patch)
tree6142b1ce20c8f6da68c25ae14358b6c36770806a /lib
parentfafa40997e83c1215becf00d546177385b7e4bef (diff)
[DOC] make internally used classes/methods nodoc
Empty class documents are generated even with `:stopdoc:`.
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 ef14f3042e..4ced064a8b 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
##
@@ -1359,8 +1351,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)