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 36 def allows_script? 37 false 38 end
evaluate(scope, locals, &block)
click to toggle source
# File lib/tilt/rdoc.rb 32 def evaluate(scope, locals, &block) 33 @output ||= @engine.to_s 34 end
markup()
click to toggle source
# File lib/tilt/rdoc.rb 16 def markup 17 begin 18 # RDoc 4.0 19 require 'rdoc/options' 20 RDoc::Markup::ToHtml.new(RDoc::Options.new, nil) 21 rescue ArgumentError 22 # RDoc < 4.0 23 RDoc::Markup::ToHtml.new 24 end 25 end
prepare()
click to toggle source
# File lib/tilt/rdoc.rb 27 def prepare 28 @engine = markup.convert(data) 29 @output = nil 30 end