[DOC] make internally used classes/methods nodoc
Empty class documents are generated even with `:stopdoc:`.
This commit is contained in:
parent
fafa40997e
commit
6946263a29
18
lib/mkmf.rb
18
lib/mkmf.rb
@ -7,9 +7,7 @@ require 'rbconfig'
|
|||||||
require 'fileutils'
|
require 'fileutils'
|
||||||
require 'shellwords'
|
require 'shellwords'
|
||||||
|
|
||||||
class String
|
class String # :nodoc:
|
||||||
# :stopdoc:
|
|
||||||
|
|
||||||
# Wraps a string in escaped quotes if it contains whitespace.
|
# Wraps a string in escaped quotes if it contains whitespace.
|
||||||
def quote
|
def quote
|
||||||
/\s/ =~ self ? "\"#{self}\"" : "#{self}"
|
/\s/ =~ self ? "\"#{self}\"" : "#{self}"
|
||||||
@ -32,19 +30,13 @@ class String
|
|||||||
def sans_arguments
|
def sans_arguments
|
||||||
self[/\A[^()]+/]
|
self[/\A[^()]+/]
|
||||||
end
|
end
|
||||||
|
|
||||||
# :startdoc:
|
|
||||||
end
|
end
|
||||||
|
|
||||||
class Array
|
class Array # :nodoc:
|
||||||
# :stopdoc:
|
|
||||||
|
|
||||||
# Wraps all strings in escaped quotes if they contain whitespace.
|
# Wraps all strings in escaped quotes if they contain whitespace.
|
||||||
def quote
|
def quote
|
||||||
map {|s| s.quote}
|
map {|s| s.quote}
|
||||||
end
|
end
|
||||||
|
|
||||||
# :startdoc:
|
|
||||||
end
|
end
|
||||||
|
|
||||||
##
|
##
|
||||||
@ -1359,8 +1351,10 @@ SRC
|
|||||||
|
|
||||||
# :stopdoc:
|
# :stopdoc:
|
||||||
STRING_OR_FAILED_FORMAT = "%s"
|
STRING_OR_FAILED_FORMAT = "%s"
|
||||||
def STRING_OR_FAILED_FORMAT.%(x) # :nodoc:
|
class << STRING_OR_FAILED_FORMAT # :nodoc:
|
||||||
x ? super : "failed"
|
def %(x)
|
||||||
|
x ? super : "failed"
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
def typedef_expr(type, headers)
|
def typedef_expr(type, headers)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user