class FormatParser::Archive
Attributes
content_type[RW]
The MIME type of the archive
entries[RW]
Array of Entry
structs
format[RW]
What filetype was recognized? Will contain a non-ambiguous symbol referring to the file format. The symbol can be used as a filename extension safely
intrinsics[RW]
If a parser wants to provide any extra information to the caller it can be placed here
nature[RW]
Lots of Office and LibreOffice documents are in fact packaged into ZIPs, as are .epub files. We make `nature` customisable for this occasion
Public Class Methods
new(**attributes)
click to toggle source
Only permits assignments via defined accessors
# File lib/archive.rb, line 33 def initialize(**attributes) attributes.map { |(k, v)| public_send("#{k}=", v) } end