More Ruby 1.9 Compatibility fixes

Still a long way to go, but these will help.
This commit is contained in:
Jacques Distler 2008-11-12 09:47:24 -06:00
parent 3efc067f06
commit 1b69b148de
7 changed files with 36 additions and 21 deletions

View file

@ -2,9 +2,15 @@ begin
require "rdoc/markup/simple_markup"
require 'rdoc/markup/simple_markup/to_html'
rescue LoadError
# use old version if available
require 'markup/simple_markup'
require 'markup/simple_markup/to_html'
# Ruby 1.9
require "rdoc/markup"
require 'rdoc/markup/to_html'
module SM
class SimpleMarkup < RDoc::Markup
end
class ToHtml <RDoc::Markup::ToHtml
end
end
end
module RDocSupport
@ -149,4 +155,4 @@ class RDocFormatter
end
end
end
end