Sha256: 551a17ebe0e467af0b058fbd3d896758e1a7fc31d2a573e46c23a0dec2cceb84

Contents?: true

Size: 246 Bytes

Versions: 31

Compression:

Stored size: 246 Bytes

Contents

require 'rack'

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

31 entries across 31 versions & 1 rubygems

Version Path
nwiki-0.3.3 lib/nwiki/core/file.rb
nwiki-0.3.2 lib/nwiki/core/file.rb
nwiki-0.3.1 lib/nwiki/core/file.rb
nwiki-0.3.0 lib/nwiki/core/file.rb
nwiki-0.2.11 lib/nwiki/core/file.rb
nwiki-0.2.10 lib/nwiki/core/file.rb
nwiki-0.2.9 lib/nwiki/core/file.rb
nwiki-0.2.8 lib/nwiki/core/file.rb
nwiki-0.2.7 lib/nwiki/core/file.rb
nwiki-0.2.6 lib/nwiki/core/file.rb
nwiki-0.2.5 lib/nwiki/core/file.rb
nwiki-0.2.4 lib/nwiki/core/file.rb
nwiki-0.2.3 lib/nwiki/core/file.rb
nwiki-0.2.2 lib/nwiki/core/file.rb
nwiki-0.2.1 lib/nwiki/core/file.rb
nwiki-0.2.0 lib/nwiki/core/file.rb
nwiki-0.1.11 lib/nwiki/core/file.rb
nwiki-0.1.10 lib/nwiki/core/file.rb
nwiki-0.1.9 lib/nwiki/core/file.rb
nwiki-0.1.8 lib/nwiki/core/file.rb