Sha256: 5686ad9038fc03405a8976ed304ae6c92fc1850d57e16fdb54e09c0ac3bac1e0

Contents?: true

Size: 253 Bytes

Versions: 5

Compression:

Stored size: 253 Bytes

Contents

require "set"

module EPUB
  module ContentDocument
    module Typable
      attr_reader :types

      def types
        @types ||= Set.new
      end

      def types=(ts)
        @types = ts.kind_of?(Set) ? ts : Set.new(ts)
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
epub-parser-0.4.8 lib/epub/content_document/typable.rb
epub-parser-0.4.7 lib/epub/content_document/typable.rb
epub-parser-0.4.6 lib/epub/content_document/typable.rb
epub-parser-0.4.5 lib/epub/content_document/typable.rb
epub-parser-0.4.4 lib/epub/content_document/typable.rb