Class: Exerb::FileTable::Entry::Header
- Inherits:
-
Object
- Object
- Exerb::FileTable::Entry::Header
- Defined in:
- lib/exerb/file_table.rb
Overview
#
Instance Attribute Summary collapse
-
#flag_of_file ⇒ Object
Returns the value of attribute flag_of_file.
-
#id ⇒ Object
Returns the value of attribute id.
-
#offset_of_file ⇒ Object
Returns the value of attribute offset_of_file.
-
#size_of_file ⇒ Object
Returns the value of attribute size_of_file.
-
#zipd ⇒ Object
Returns the value of attribute zipd.
Instance Method Summary collapse
-
#initialize ⇒ Header
constructor
A new instance of Header.
- #pack ⇒ Object
Constructor Details
#initialize ⇒ Header
Returns a new instance of Header.
172 173 174 175 176 177 178 |
# File 'lib/exerb/file_table.rb', line 172 def initialize @id = 0 @offset_of_file = 0 @size_of_file = 0 @flag_of_file = 0 @zipd = 0 end |
Instance Attribute Details
#flag_of_file ⇒ Object
Returns the value of attribute flag_of_file.
180 181 182 |
# File 'lib/exerb/file_table.rb', line 180 def flag_of_file @flag_of_file end |
#id ⇒ Object
Returns the value of attribute id.
180 181 182 |
# File 'lib/exerb/file_table.rb', line 180 def id @id end |
#offset_of_file ⇒ Object
Returns the value of attribute offset_of_file.
180 181 182 |
# File 'lib/exerb/file_table.rb', line 180 def offset_of_file @offset_of_file end |
#size_of_file ⇒ Object
Returns the value of attribute size_of_file.
180 181 182 |
# File 'lib/exerb/file_table.rb', line 180 def size_of_file @size_of_file end |
#zipd ⇒ Object
Returns the value of attribute zipd.
180 181 182 |
# File 'lib/exerb/file_table.rb', line 180 def zipd @zipd end |
Instance Method Details
#pack ⇒ Object
182 183 184 |
# File 'lib/exerb/file_table.rb', line 182 def pack return [@id, @offset_of_file, @size_of_file, @flag_of_file, @zipd].pack('SLLCC') end |