diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-10-26 17:08:30 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-10-26 17:08:30 +0000 |
commit | b0546f1cc6b4f67fceb36cdef56e8c0080d2fcd0 (patch) | |
tree | 0790a14a542c565cc550be5c15436304a96a717a /lib/mkmf.rb | |
parent | f889eba1d4b4d4f9b6a71589ddb800f23440d047 (diff) | |
download | ruby-b0546f1cc6b4f67fceb36cdef56e8c0080d2fcd0.tar.gz |
Do not :stopdoc: entire classes/modules
It disables cross-references to the classes/modules, even if those
are defined in other places. I suspect this is not an intentional
behavior, however make a workaround for the time being.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@65380 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/mkmf.rb')
-rw-r--r-- | lib/mkmf.rb | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/lib/mkmf.rb b/lib/mkmf.rb index b035670466..a1cf99e3de 100644 --- a/lib/mkmf.rb +++ b/lib/mkmf.rb @@ -7,8 +7,9 @@ require 'rbconfig' require 'fileutils' require 'shellwords' -# :stopdoc: class String + # :stopdoc: + # Wraps a string in escaped quotes if it contains whitespace. def quote /\s/ =~ self ? "\"#{self}\"" : "#{self}" @@ -31,15 +32,20 @@ class String def sans_arguments self[/\A[^()]+/] end + + # :startdoc: end class Array + # :stopdoc: + # Wraps all strings in escaped quotes if they contain whitespace. def quote map {|s| s.quote} end + + # :startdoc: end -# :startdoc: ## # mkmf.rb is used by Ruby C extensions to generate a Makefile which will |