Class: MachO::LoadCommands::SubLibraryCommand
- Inherits:
-
LoadCommand
- Object
- MachOStructure
- LoadCommand
- MachO::LoadCommands::SubLibraryCommand
- 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
-
#sub_library ⇒ LCStr
The sublibrary name as an LCStr.
-
#to_h ⇒ Hash
A hash representation of this SubLibraryCommand.
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_library ⇒ LCStr
Returns the sublibrary name as an LCStr.
817 |
# File 'lib/macho/load_commands.rb', line 817 field :sub_library, :lcstr, :to_s => true |
#to_h ⇒ Hash
Returns a hash representation of this MachO::LoadCommands::SubLibraryCommand.
820 821 822 823 824 |
# File 'lib/macho/load_commands.rb', line 820 def to_h { "sub_library" => sub_library.to_h, }.merge super end |