Sha256: b7623eeb47c234932fe2abf4b20d1c7023883275f0a8dcfeb6fe35b6229bd9ff
Contents?: true
Size: 598 Bytes
Versions: 2
Compression:
Stored size: 598 Bytes
Contents
require 'malt/formats/abstract' require 'malt/formats/html' require 'malt/engines/rdoc' module Malt::Format # class RDoc < Abstract register('rdoc') # def rdoc(*) text end # def to_rdoc(*) self end # def html(*) render_engine.render(:text=>text, :file=>file, :format=>:html) end # def to_html(*) opts = options.merge(:text=>html, :file=>refile(:html), :type=>:html) HTML.new(opts) end private # def render_engine @render_engine ||= Malt::Engine::RDoc.new(options) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
malt-0.3.0 | lib/malt/formats/rdoc.rb |
malt-0.2.0 | lib/malt/formats/rdoc.rb |