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:
parent
fafa40997e
commit
6946263a29
1 changed files with 6 additions and 12 deletions
18
lib/mkmf.rb
18
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)
|
||||
|
|
Loading…
Add table
Reference in a new issue