Class: MachO::LoadCommands::SubLibraryCommand

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

Overview

A load command signifying a sublibrary of a shared library. Corresponds to LC_SUB_LIBRARY.

Instance Method Summary collapse

Methods inherited from LoadCommand

#cmd, #cmdsize, create, new_from_bin, #offset, #serializable?, #serialize, #to_s, #type, #view

Methods inherited from MachOStructure

bytesize, format, #initialize, new_from_bin

Constructor Details

This class inherits a constructor from MachO::MachOStructure

Instance Method Details

#sub_libraryLCStr

Returns the sublibrary name as an LCStr.

Returns:

  • (LCStr)

    the sublibrary name as an LCStr



718
# File 'lib/macho/load_commands.rb', line 718

field :sub_library, :lcstr, :to_s => true

#to_hHash

Returns a hash representation of this MachO::LoadCommands::SubLibraryCommand.

Returns:



721
722
723
724
725
# File 'lib/macho/load_commands.rb', line 721

def to_h
  {
    "sub_library" => sub_library.to_h,
  }.merge super
end