class Tilt::RDocTemplate
RDoc template. See: rdoc.rubyforge.org/
It's suggested that your program `require 'rdoc/markup'` and `require 'rdoc/markup/to_html'` at load time when using this template engine in a threaded environment.
Public Instance Methods
allows_script?()
click to toggle source
# File lib/tilt/rdoc.rb, line 36 def allows_script? false end
evaluate(scope, locals, &block)
click to toggle source
# File lib/tilt/rdoc.rb, line 32 def evaluate(scope, locals, &block) @output ||= @engine.to_s end
markup()
click to toggle source
# File lib/tilt/rdoc.rb, line 16 def markup begin # RDoc 4.0 require 'rdoc/options' RDoc::Markup::ToHtml.new(RDoc::Options.new, nil) rescue ArgumentError # RDoc < 4.0 RDoc::Markup::ToHtml.new end end
prepare()
click to toggle source
# File lib/tilt/rdoc.rb, line 27 def prepare @engine = markup.convert(data) @output = nil end