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