1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* lib/mkmf.rb (STRING_OR_FAILED_FORMAT.%): nodoc.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28060 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2010-05-29 00:43:09 +00:00
parent ab3368de80
commit fc130468c7

View file

@ -988,9 +988,11 @@ def have_const(const, headers = nil, opt = "", &b)
end
STRING_OR_FAILED_FORMAT = "%s"
# :stopdoc:
def STRING_OR_FAILED_FORMAT.%(x)
x ? super : "failed"
end
# :startdoc:
# Returns the size of the given +type+. You may optionally specify additional
# +headers+ to search in for the +type+.