Class: MachO::PreboundDylibCommand

Inherits:
LoadCommand show all
Defined in:
lib/macho/load_commands.rb

Overview

A load command used to indicate dynamic libraries used in prebinding. Corresponds to LC_PREBOUND_DYLIB.

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, nmodules, linked_modules) ⇒ PreboundDylibCommand

Returns a new instance of PreboundDylibCommand.



448
449
450
451
452
453
# File 'lib/macho/load_commands.rb', line 448

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

Instance Attribute Details

#linked_modulesObject (readonly)

Returns the value of attribute linked_modules.



442
443
444
# File 'lib/macho/load_commands.rb', line 442

def linked_modules
  @linked_modules
end

#nameObject (readonly)

Returns the value of attribute name.



442
443
444
# File 'lib/macho/load_commands.rb', line 442

def name
  @name
end

#nmodulesObject (readonly)

Returns the value of attribute nmodules.



442
443
444
# File 'lib/macho/load_commands.rb', line 442

def nmodules
  @nmodules
end