Sha256: aad2b6d86ee0bd1ee082d5064c4b92157df9d2be2cc7ac2d2a91495f61498c0f

Contents?: true

Size: 477 Bytes

Versions: 4

Compression:

Stored size: 477 Bytes

Contents

module EPUB
  class OCF
    class Container
      FILE = 'container.xml'

      attr_reader :rootfiles

      def initialize
        @rootfiles = []
      end

      # syntax sugar
      def rootfile
        rootfiles.first
      end

      class Rootfile
        attr_accessor :full_path, :media_type

        def initialize(full_path=nil, media_type=EPUB::MediaType::ROOTFILE)
          @full_path, @media_type = full_path, media_type
        end
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
epub-parser-0.1.4 lib/epub/ocf/container.rb
epub-parser-0.1.3 lib/epub/ocf/container.rb
epub-parser-0.1.2 lib/epub/ocf/container.rb
epub-parser-0.1.1 lib/epub/ocf/container.rb