Class: MachO::LoadCommands::SubClientCommand

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

Overview

A load command signifying a shared library that is a subframework of an umbrella framework. Corresponds to LC_SUB_CLIENT.

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_clientLCStr

Returns the subclient name as an LCStr.

Returns:

  • (LCStr)

    the subclient name as an LCStr



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

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

#to_hHash

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

Returns:



735
736
737
738
739
# File 'lib/macho/load_commands.rb', line 735

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