class DocFrac::Format
Attributes
ext[R]
format_text[R]
Public Class Methods
new(format)
click to toggle source
# File lib/doc_frac/format.rb, line 4 def initialize(format) formats = { :to_rtf => "--to-rtf", :from_rtf => "--from-rtf", :to_html => "--to-html", :from_html => "--from-html", :to_text => "--to-text", :from_text => "--from-text" } @format_text = formats[format] @ext = format.to_s.split("_").last end