Sha256: 542cabfffb33af830a6a2b59015fc5b13fa6cd2d1ef6679da461d7e29ced4cbf

Contents?: true

Size: 230 Bytes

Versions: 7

Compression:

Stored size: 230 Bytes

Contents

module Nwiki
  module Core
    class File
      attr_reader :data, :content_type

      def initialize name, data
        @data = data
        @content_type = Rack::Mime.mime_type(::File.extname(name))
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
nwiki-0.0.8 lib/nwiki/core/file.rb
nwiki-0.0.7 lib/nwiki/core/file.rb
nwiki-0.0.6 lib/nwiki/core/file.rb
nwiki-0.0.5 lib/nwiki/core/file.rb
nwiki-0.0.4 lib/nwiki/core/file.rb
nwiki-0.0.3 lib/nwiki/core/file.rb
nwiki-0.0.2 lib/nwiki/core/file.rb