class MachO::LoadCommands::VersionMinCommand
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.
Public Instance Methods
sdk_string()
click to toggle source
A string representation of the binary’s SDK version. @return [String] a string representing the SDK version.
# File lib/macho/load_commands.rb, line 1136 def sdk_string binary = "%032<sdk>b" % { :sdk => sdk } segs = [ binary[0..15], binary[16..23], binary[24..31] ].map { |s| s.to_i(2) } segs.join(".") end
to_h()
click to toggle source
@return [Hash] a hash representation of this {VersionMinCommand}
Calls superclass method
MachO::LoadCommands::LoadCommand#to_h
# File lib/macho/load_commands.rb, line 1146 def to_h { "version" => version, "version_string" => version_string, "sdk" => sdk, "sdk_string" => sdk_string, }.merge super end
version_string()
click to toggle source
A string representation of the binary’s minimum OS version. @return [String] a string representing the minimum OS version.
# File lib/macho/load_commands.rb, line 1125 def version_string binary = "%032<version>b" % { :version => version } segs = [ binary[0..15], binary[16..23], binary[24..31] ].map { |s| s.to_i(2) } segs.join(".") end