module PivotalToPdf class SimpleTextFormatter attr_reader :string private :string def initialize(string) @string = string end def output string.gsub( /\*(.*)\*/,"\\1").gsub(/_(.*)_/, "\\1") end end end