Skip to content

Commit d24e4f7

Browse files
authored
Merge pull request #537 from aycabta/remove-process_directive
Remove RDoc::Parser.process_directive
2 parents 9385bc5 + f6d0c6c commit d24e4f7

File tree

1 file changed

+0
-25
lines changed

1 file changed

+0
-25
lines changed

lib/rdoc/parser.rb

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -87,31 +87,6 @@ def self.binary?(file)
8787
not s.valid_encoding?
8888
end
8989

90-
##
91-
# Processes common directives for CodeObjects for the C and Ruby parsers.
92-
#
93-
# Applies +directive+'s +value+ to +code_object+, if appropriate
94-
95-
def self.process_directive code_object, directive, value
96-
warn "RDoc::Parser::process_directive is deprecated and wil be removed in RDoc 4. Use RDoc::Markup::PreProcess#handle_directive instead" if $-w
97-
98-
case directive
99-
when 'nodoc' then
100-
code_object.document_self = nil # notify nodoc
101-
code_object.document_children = value.downcase != 'all'
102-
when 'doc' then
103-
code_object.document_self = true
104-
code_object.force_documentation = true
105-
when 'yield', 'yields' then
106-
# remove parameter &block
107-
code_object.params.sub!(/,?\s*&\w+/, '') if code_object.params
108-
109-
code_object.block_params = value
110-
when 'arg', 'args' then
111-
code_object.params = value
112-
end
113-
end
114-
11590
##
11691
# Checks if +file+ is a zip file in disguise. Signatures from
11792
# http://www.garykessler.net/library/file_sigs.html

0 commit comments

Comments
 (0)