Class: MachO::UUIDCommand
- Inherits:
-
LoadCommand
- Object
- MachOStructure
- LoadCommand
- MachO::UUIDCommand
- Defined in:
- lib/macho/load_commands.rb
Instance Attribute Summary collapse
-
#uuid ⇒ Object
readonly
Returns the value of attribute uuid.
Attributes inherited from LoadCommand
Instance Method Summary collapse
-
#initialize(offset, cmd, cmdsize, uuid) ⇒ UUIDCommand
constructor
A new instance of UUIDCommand.
Methods inherited from LoadCommand
Methods inherited from MachOStructure
Constructor Details
#initialize(offset, cmd, cmdsize, uuid) ⇒ UUIDCommand
Returns a new instance of UUIDCommand.
197 198 199 200 |
# File 'lib/macho/load_commands.rb', line 197 def initialize(offset, cmd, cmdsize, uuid) super(offset, cmd, cmdsize) @uuid = uuid.unpack("C16") # re-unpack for the actual UUID array end |
Instance Attribute Details
#uuid ⇒ Object (readonly)
Returns the value of attribute uuid.
192 193 194 |
# File 'lib/macho/load_commands.rb', line 192 def uuid @uuid end |