Class: Dox::Formatters::Plain
Instance Method Summary collapse
Methods inherited from Base
Constructor Details
This class inherits a constructor from Dox::Formatters::Base
Instance Method Details
#format ⇒ Object
4 5 6 7 8 9 10 |
# File 'lib/dox/formatters/plain.rb', line 4 def format return body if body.encoding == Encoding::UTF_8 body.encode(Encoding::UTF_8) rescue Encoding::UndefinedConversionError "#{body.encoding} stream" end |