Class: Cabriolet::Models::LITFile

Inherits:
Object
  • Object
show all
Defined in:
lib/cabriolet/models/lit_header.rb

Overview

Represents a file entry within a LIT archive

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeLITFile



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

#compressedObject

Returns the value of attribute compressed.



30
31
32
# File 'lib/cabriolet/models/lit_header.rb', line 30

def compressed
  @compressed
end

#encryptedObject

Returns the value of attribute encrypted.



30
31
32
# File 'lib/cabriolet/models/lit_header.rb', line 30

def encrypted
  @encrypted
end

#filenameObject

Returns the value of attribute filename.



30
31
32
# File 'lib/cabriolet/models/lit_header.rb', line 30

def filename
  @filename
end

#lengthObject

Returns the value of attribute length.



30
31
32
# File 'lib/cabriolet/models/lit_header.rb', line 30

def length
  @length
end

#offsetObject

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