Class: Exerb::NameTable::Entry::Header
- Inherits:
-
Object
- Object
- Exerb::NameTable::Entry::Header
- Defined in:
- lib/exerb/name_table.rb
Overview
#
Instance Attribute Summary collapse
-
#id ⇒ Object
Returns the value of attribute id.
-
#offset_of_name ⇒ Object
Returns the value of attribute offset_of_name.
Instance Method Summary collapse
-
#initialize ⇒ Header
constructor
A new instance of Header.
- #pack ⇒ Object
Constructor Details
#initialize ⇒ Header
Returns a new instance of Header.
106 107 108 109 |
# File 'lib/exerb/name_table.rb', line 106 def initialize @id = 0 @offset_of_name = 0 end |
Instance Attribute Details
#id ⇒ Object
Returns the value of attribute id.
111 112 113 |
# File 'lib/exerb/name_table.rb', line 111 def id @id end |
#offset_of_name ⇒ Object
Returns the value of attribute offset_of_name.
111 112 113 |
# File 'lib/exerb/name_table.rb', line 111 def offset_of_name @offset_of_name end |
Instance Method Details
#pack ⇒ Object
113 114 115 |
# File 'lib/exerb/name_table.rb', line 113 def pack return [@id, @offset_of_name].pack('SL') end |