Class: MachO::SubFrameworkCommand

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

Overview

A load command signifying membership of a subframework containing the name of an umbrella framework. Corresponds to LC_SUB_FRAMEWORK.

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, umbrella) ⇒ SubFrameworkCommand

Returns a new instance of SubFrameworkCommand.



643
644
645
646
# File 'lib/macho/load_commands.rb', line 643

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

Instance Attribute Details

#umbrellaFixnum (readonly)

Returns the umbrella framework name (lc_str).

Returns:

  • (Fixnum)

    the umbrella framework name (lc_str)



637
638
639
# File 'lib/macho/load_commands.rb', line 637

def umbrella
  @umbrella
end