Sha256: 87aed877eb5166636c2f1c6fff61dcaa2da8a664ff987514f304c593813c2387
Contents?: true
Size: 582 Bytes
Versions: 10
Compression:
Stored size: 582 Bytes
Contents
module BrowseEverything class FileEntry attr_reader :id, :location, :name, :size, :mtime, :type def initialize(id, location, name, size, mtime, container, type = nil) @id = id @location = location @name = name @size = size @mtime = mtime @container = container @type = type || (@container ? 'application/x-directory' : Rack::Mime.mime_type(File.extname(name))) end def relative_parent_path? name =~ /^\.\.?$/ ? true : false end def container? @container end end end
Version data entries
10 entries across 10 versions & 1 rubygems