class Malt::Format::MediaWiki

Public Instance Methods

html(*data, &content) click to toggle source
# File lib/malt/formats/mediawiki.rb, line 28
def html(*data, &content)
  #render_engine.render(:text=>text, :file=>file, :format=>:html)
  render_into(:html, *data, &content)
end
mediawiki(*) click to toggle source
# File lib/malt/formats/mediawiki.rb, line 15
def mediawiki(*)
  text
end
Also aliased as: mw
mw(*)
Alias for: mediawiki
to_html(*) click to toggle source

Convert to HTML.

# File lib/malt/formats/mediawiki.rb, line 34
def to_html(*)
  opts = options.merge(:text=>html, :file=>refile(:html), :type=>:html)
  HTML.new(opts)
end
to_mediawiki(*) click to toggle source
# File lib/malt/formats/mediawiki.rb, line 20
def to_mediawiki(*)
  self
end
Also aliased as: to_mw
to_mw(*)
Alias for: to_mediawiki