Class: MachO::VersionMinCommand
- Inherits:
-
LoadCommand
- Object
- MachOStructure
- LoadCommand
- MachO::VersionMinCommand
- Defined in:
- lib/macho/load_commands.rb
Overview
A load command containing the minimum OS version on which the binary was built to run. Corresponds to LC_VERSION_MIN_MACOSX and LC_VERSION_MIN_IPHONEOS.
Instance Attribute Summary collapse
-
#sdk ⇒ Fixnum
readonly
The SDK version X.Y.Z packed as x16.y8.z8.
-
#version ⇒ Fixnum
readonly
The version X.Y.Z packed as x16.y8.z8.
Attributes inherited from LoadCommand
Instance Method Summary collapse
-
#initialize(offset, cmd, cmdsize, version, sdk) ⇒ VersionMinCommand
constructor
A new instance of VersionMinCommand.
Methods inherited from LoadCommand
Methods inherited from MachOStructure
Constructor Details
#initialize(offset, cmd, cmdsize, version, sdk) ⇒ VersionMinCommand
Returns a new instance of VersionMinCommand.
811 812 813 814 815 |
# File 'lib/macho/load_commands.rb', line 811 def initialize(offset, cmd, cmdsize, version, sdk) super(offset, cmd, cmdsize) @version = version @sdk = sdk end |
Instance Attribute Details
#sdk ⇒ Fixnum (readonly)
Returns the SDK version X.Y.Z packed as x16.y8.z8.
805 806 807 |
# File 'lib/macho/load_commands.rb', line 805 def sdk @sdk end |
#version ⇒ Fixnum (readonly)
Returns the version X.Y.Z packed as x16.y8.z8.
802 803 804 |
# File 'lib/macho/load_commands.rb', line 802 def version @version end |