Class: MachO::LinkerOptionCommand

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

Overview

A load command containing linker options embedded in object files. Corresponds to LC_LINKER_OPTION.

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, count) ⇒ LinkerOptionCommand

Returns a new instance of LinkerOptionCommand.



857
858
859
860
# File 'lib/macho/load_commands.rb', line 857

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

Instance Attribute Details

#countFixnum (readonly)

Returns the number of strings.

Returns:

  • (Fixnum)

    the number of strings



851
852
853
# File 'lib/macho/load_commands.rb', line 851

def count
  @count
end