Skip to content

Commit 0217504

Browse files
committed
Initialize variables for ruby -w
1 parent 4c26e47 commit 0217504

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

lib/rdoc/markup/verbatim.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ def normalize
4949
# Is this verbatim section ruby code?
5050

5151
def ruby?
52+
@format ||= nil # TODO for older ri data, switch the tree to marshal_dump
5253
@format == :ruby
5354
end
5455

lib/rdoc/rdoc.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@
2626

2727
class RDoc::RDoc
2828

29+
@current = nil
30+
2931
##
3032
# This is the list of supported output generators
3133

0 commit comments

Comments
 (0)