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
This commit is contained in:
parent
f889eba1d4
commit
b0546f1cc6
10
lib/mkmf.rb
10
lib/mkmf.rb
@ -7,8 +7,9 @@ require 'rbconfig'
|
|||||||
require 'fileutils'
|
require 'fileutils'
|
||||||
require 'shellwords'
|
require 'shellwords'
|
||||||
|
|
||||||
# :stopdoc:
|
|
||||||
class String
|
class String
|
||||||
|
# :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}"
|
||||||
@ -31,15 +32,20 @@ class String
|
|||||||
def sans_arguments
|
def sans_arguments
|
||||||
self[/\A[^()]+/]
|
self[/\A[^()]+/]
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# :startdoc:
|
||||||
end
|
end
|
||||||
|
|
||||||
class Array
|
class Array
|
||||||
|
# :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
|
||||||
# :startdoc:
|
|
||||||
|
|
||||||
##
|
##
|
||||||
# mkmf.rb is used by Ruby C extensions to generate a Makefile which will
|
# mkmf.rb is used by Ruby C extensions to generate a Makefile which will
|
||||||
|
@ -132,8 +132,8 @@ class IO
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
# :stopdoc:
|
|
||||||
class Binding
|
class Binding
|
||||||
|
# :nodoc:
|
||||||
def irb
|
def irb
|
||||||
require 'irb'
|
require 'irb'
|
||||||
irb
|
irb
|
||||||
|
Loading…
x
Reference in New Issue
Block a user