Sha256: 6605d0aac45a5fd4fa92e3daff22b52456c0255bde0f36d2b6885750c50ce99c

Contents?: true

Size: 262 Bytes

Versions: 14

Compression:

Stored size: 262 Bytes

Contents

module Approvals
  module Writers
    class HtmlWriter < TextWriter

      def extension
        'html'
      end

      def format(data)
        Nokogiri::XML(data.to_s.strip,&:noblanks).to_xhtml(:indent => 2, :encoding => 'UTF-8')
      end

    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
approvals-0.0.14 lib/approvals/writers/html_writer.rb
approvals-0.0.13 lib/approvals/writers/html_writer.rb
approvals-0.0.12 lib/approvals/writers/html_writer.rb
approvals-0.0.11 lib/approvals/writers/html_writer.rb
approvals-0.0.10 lib/approvals/writers/html_writer.rb
approvals-0.0.9 lib/approvals/writers/html_writer.rb
approvals-0.0.8 lib/approvals/writers/html_writer.rb
approvals-0.0.7 lib/approvals/writers/html_writer.rb
approvals-0.0.6 lib/approvals/writers/html_writer.rb
approvals-0.0.5 lib/approvals/writers/html_writer.rb
approvals-0.0.4 lib/approvals/writers/html_writer.rb
approvals-0.0.3 lib/approvals/writers/html_writer.rb
approvals-0.0.2 lib/approvals/writers/html_writer.rb
approvals-0.0.1 lib/approvals/writers/html_writer.rb