mirror of
https://github.com/ruby/ruby.git
synced 2025-09-20 19:14:00 +02:00
merge revision(s) 6946263a29
:
[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(-)
This commit is contained in:
parent
e574190310
commit
82b6b9c512
2 changed files with 7 additions and 13 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
|
||||
|
||||
##
|
||||
|
@ -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)
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
# define RUBY_VERSION_MINOR RUBY_API_VERSION_MINOR
|
||||
#define RUBY_VERSION_TEENY 3
|
||||
#define RUBY_RELEASE_DATE RUBY_RELEASE_YEAR_STR"-"RUBY_RELEASE_MONTH_STR"-"RUBY_RELEASE_DAY_STR
|
||||
#define RUBY_PATCHLEVEL 127
|
||||
#define RUBY_PATCHLEVEL 128
|
||||
|
||||
#define RUBY_RELEASE_YEAR 2022
|
||||
#define RUBY_RELEASE_MONTH 10
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue