Skip to content

Commit

Permalink
Initialize variables for ruby -w
Browse files Browse the repository at this point in the history
  • Loading branch information
drbrain committed Dec 15, 2011
1 parent 4c26e47 commit 0217504
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions lib/rdoc/markup/verbatim.rb
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ def normalize
# Is this verbatim section ruby code?

def ruby?
@format ||= nil # TODO for older ri data, switch the tree to marshal_dump
@format == :ruby
end

Expand Down
2 changes: 2 additions & 0 deletions lib/rdoc/rdoc.rb
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@

class RDoc::RDoc

@current = nil

##
# This is the list of supported output generators

Expand Down

0 comments on commit 0217504

Please sign in to comment.