Class: MachO::SourceVersionCommand
- Inherits:
-
LoadCommand
- Object
- MachOStructure
- LoadCommand
- MachO::SourceVersionCommand
- Defined in:
- lib/macho/load_commands.rb
Overview
A load command specifying the version of the sources used to build the binary. Corresponds to LC_SOURCE_VERSION.
Instance Attribute Summary collapse
-
#version ⇒ Fixnum
readonly
The version packed as a24.b10.c10.d10.e10.
Attributes inherited from LoadCommand
Instance Method Summary collapse
-
#initialize(offset, cmd, cmdsize, version) ⇒ SourceVersionCommand
constructor
A new instance of SourceVersionCommand.
Methods inherited from LoadCommand
Methods inherited from MachOStructure
Constructor Details
#initialize(offset, cmd, cmdsize, version) ⇒ SourceVersionCommand
Returns a new instance of SourceVersionCommand.
892 893 894 895 |
# File 'lib/macho/load_commands.rb', line 892 def initialize(offset, cmd, cmdsize, version) super(offset, cmd, cmdsize) @version = version end |
Instance Attribute Details
#version ⇒ Fixnum (readonly)
Returns the version packed as a24.b10.c10.d10.e10.
886 887 888 |
# File 'lib/macho/load_commands.rb', line 886 def version @version end |