Class: MachO::DylinkerCommand
- Inherits:
-
LoadCommand
- Object
- MachOStructure
- LoadCommand
- MachO::DylinkerCommand
- Defined in:
- lib/macho/load_commands.rb
Overview
A load command representing some aspect of the dynamic linker, depending on filetype. Corresponds to LC_ID_DYLINKER, LC_LOAD_DYLINKER, and LC_DYLD_ENVIRONMENT.
Instance Attribute Summary collapse
-
#name ⇒ MachO::LoadCommand::LCStr
readonly
The dynamic linker’s path name as an LCStr.
Attributes inherited from LoadCommand
Instance Method Summary collapse
-
#initialize(raw_data, offset, cmd, cmdsize, name) ⇒ DylinkerCommand
constructor
private
A new instance of DylinkerCommand.
Methods inherited from LoadCommand
Methods inherited from MachOStructure
Constructor Details
#initialize(raw_data, offset, cmd, cmdsize, name) ⇒ DylinkerCommand
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns a new instance of DylinkerCommand.
531 532 533 534 |
# File 'lib/macho/load_commands.rb', line 531 def initialize(raw_data, offset, cmd, cmdsize, name) super(raw_data, offset, cmd, cmdsize) @name = LCStr.new(raw_data, self, name) end |
Instance Attribute Details
#name ⇒ MachO::LoadCommand::LCStr (readonly)
Returns the dynamic linker’s path name as an LCStr.
525 526 527 |
# File 'lib/macho/load_commands.rb', line 525 def name @name end |