openxml/openxml-package

View on GitHub
lib/openxml/parts/unparsed_part.rb

Summary

Maintainability
A
0 mins
Test Coverage
module OpenXml
  module Parts
    class UnparsedPart

      def initialize(content)
        @content = content
      end

      def content
        @content = @content.get_input_stream.read if promise?
        @content
      end

      def promise?
        @content.respond_to? :get_input_stream
      end

    end
  end
end