Class: MachO::VersionMinCommand

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

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, version, sdk) ⇒ VersionMinCommand

Returns a new instance of VersionMinCommand.



537
538
539
540
541
# File 'lib/macho/load_commands.rb', line 537

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

Instance Attribute Details

#sdkObject (readonly)

Returns the value of attribute sdk.



532
533
534
# File 'lib/macho/load_commands.rb', line 532

def sdk
  @sdk
end

#versionObject (readonly)

Returns the value of attribute version.



532
533
534
# File 'lib/macho/load_commands.rb', line 532

def version
  @version
end