1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

[DOC] make internally used classes/methods nodoc

Empty class documents are generated even with `:stopdoc:`.
This commit is contained in:
Nobuyoshi Nakada 2022-03-20 14:26:20 +09:00
parent fafa40997e
commit 6946263a29
No known key found for this signature in database
GPG key ID: 7CD2805BFA3770C6

View file

@ -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,9 +1351,11 @@ SRC
# :stopdoc:
STRING_OR_FAILED_FORMAT = "%s"
def STRING_OR_FAILED_FORMAT.%(x) # :nodoc:
class << STRING_OR_FAILED_FORMAT # :nodoc:
def %(x)
x ? super : "failed"
end
end
def typedef_expr(type, headers)
typename, member = type.split('.', 2)