Class: Omnizip::Archive::Entry
- Inherits:
-
Struct
- Object
- Struct
- Omnizip::Archive::Entry
- Defined in:
- lib/omnizip/archive.rb
Overview
Metadata record yielded by ReaderSession#entries. The size
member intentionally shadows Struct#size: the documented
contract is entry size in bytes, not the member count.
rubocop:disable-next Lint/StructNewOverride -- documented byte size
Instance Attribute Summary collapse
-
#directory ⇒ Object
Returns the value of attribute directory.
-
#mtime ⇒ Object
Returns the value of attribute mtime.
-
#name ⇒ Object
Returns the value of attribute name.
-
#size ⇒ Object
Returns the value of attribute size.
Instance Method Summary collapse
Instance Attribute Details
#directory ⇒ Object
Returns the value of attribute directory
33 34 35 |
# File 'lib/omnizip/archive.rb', line 33 def directory @directory end |
#mtime ⇒ Object
Returns the value of attribute mtime
33 34 35 |
# File 'lib/omnizip/archive.rb', line 33 def mtime @mtime end |
#name ⇒ Object
Returns the value of attribute name
33 34 35 |
# File 'lib/omnizip/archive.rb', line 33 def name @name end |
#size ⇒ Object
Returns the value of attribute size
33 34 35 |
# File 'lib/omnizip/archive.rb', line 33 def size @size end |
Instance Method Details
#directory? ⇒ Boolean
34 35 36 |
# File 'lib/omnizip/archive.rb', line 34 def directory? directory end |