Sha256: fa0149c7d3c91a8abfc78d30c49aaec4bc74d1ca915bb8ffd20b9344c3b14c08

Contents?: true

Size: 394 Bytes

Versions: 8

Compression:

Stored size: 394 Bytes

Contents

require "metacrunch/file"

module Metacrunch
  class File::Entry

    attr_reader :filename, :archive_filename, :contents

    def initialize(filename:, archive_filename: nil, contents: nil)
      @filename         = filename
      @archive_filename = archive_filename.presence
      @contents         = contents
    end

    def from_archive?
      @archive_filename != nil
    end

  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
metacrunch-file-1.5.0 lib/metacrunch/file/entry.rb
metacrunch-file-1.4.0 lib/metacrunch/file/entry.rb
metacrunch-file-1.3.1 lib/metacrunch/file/entry.rb
metacrunch-file-1.3.0 lib/metacrunch/file/entry.rb
metacrunch-file-1.2.1 lib/metacrunch/file/entry.rb
metacrunch-file-1.2.0 lib/metacrunch/file/entry.rb
metacrunch-file-1.1.0 lib/metacrunch/file/entry.rb
metacrunch-file-1.0.0 lib/metacrunch/file/entry.rb