mirror of
https://github.com/ruby/ruby.git
synced 2025-09-15 16:44:01 +02:00
* lib/rdoc.rb: Import RDoc 3.7 release candidate
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32115 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
97ac172d58
commit
b7528b5edb
58 changed files with 2637 additions and 277 deletions
|
@ -74,6 +74,13 @@ class RDoc::Markup::PreProcess
|
|||
filename = param.split[0]
|
||||
encoding = if defined?(Encoding) then text.encoding else nil end
|
||||
include_file filename, prefix, encoding
|
||||
when 'category' then
|
||||
if RDoc::Context === code_object then
|
||||
section = code_object.add_section param, ''
|
||||
code_object.temporary_section = section
|
||||
end
|
||||
|
||||
'' # ignore category if we're not on an RDoc::Context
|
||||
else
|
||||
result = yield directive, param if block_given?
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue