Class: Cabriolet::Models::LITFile
- Inherits:
-
Object
- Object
- Cabriolet::Models::LITFile
- Defined in:
- lib/cabriolet/models/lit_header.rb
Overview
Represents a file entry within a LIT archive
Instance Attribute Summary collapse
-
#compressed ⇒ Object
Returns the value of attribute compressed.
-
#encrypted ⇒ Object
Returns the value of attribute encrypted.
-
#filename ⇒ Object
Returns the value of attribute filename.
-
#length ⇒ Object
Returns the value of attribute length.
-
#offset ⇒ Object
Returns the value of attribute offset.
Instance Method Summary collapse
-
#compressed? ⇒ Boolean
Check if the file is compressed.
-
#encrypted? ⇒ Boolean
Check if the file is encrypted.
-
#initialize ⇒ LITFile
constructor
A new instance of LITFile.
Constructor Details
#initialize ⇒ LITFile
32 33 34 35 36 37 38 |
# File 'lib/cabriolet/models/lit_header.rb', line 32 def initialize @filename = "" @offset = 0 @length = 0 @compressed = true @encrypted = false end |
Instance Attribute Details
#compressed ⇒ Object
Returns the value of attribute compressed.
30 31 32 |
# File 'lib/cabriolet/models/lit_header.rb', line 30 def compressed @compressed end |
#encrypted ⇒ Object
Returns the value of attribute encrypted.
30 31 32 |
# File 'lib/cabriolet/models/lit_header.rb', line 30 def encrypted @encrypted end |
#filename ⇒ Object
Returns the value of attribute filename.
30 31 32 |
# File 'lib/cabriolet/models/lit_header.rb', line 30 def filename @filename end |
#length ⇒ Object
Returns the value of attribute length.
30 31 32 |
# File 'lib/cabriolet/models/lit_header.rb', line 30 def length @length end |
#offset ⇒ Object
Returns the value of attribute offset.
30 31 32 |
# File 'lib/cabriolet/models/lit_header.rb', line 30 def offset @offset end |
Instance Method Details
#compressed? ⇒ Boolean
Check if the file is compressed
43 44 45 |
# File 'lib/cabriolet/models/lit_header.rb', line 43 def compressed? @compressed end |
#encrypted? ⇒ Boolean
Check if the file is encrypted
50 51 52 |
# File 'lib/cabriolet/models/lit_header.rb', line 50 def encrypted? @encrypted end |