Class: MachO::DylinkerCommand

Inherits:
LoadCommand show all
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

Attributes inherited from LoadCommand

#cmd, #cmdsize, #offset

Instance Method Summary collapse

Methods inherited from LoadCommand

new_from_bin, #to_s

Methods inherited from MachOStructure

bytesize, new_from_bin

Constructor Details

#initialize(offset, cmd, cmdsize, name) ⇒ DylinkerCommand

Returns a new instance of DylinkerCommand.



433
434
435
436
# File 'lib/macho/load_commands.rb', line 433

def initialize(offset, cmd, cmdsize, name)
	super(offset, cmd, cmdsize)
	@name = name
end

Instance Attribute Details

#nameObject (readonly)

Returns the value of attribute name.



427
428
429
# File 'lib/macho/load_commands.rb', line 427

def name
  @name
end