Class: MachO::SourceVersionCommand

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) ⇒ SourceVersionCommand

Returns a new instance of SourceVersionCommand.



594
595
596
597
# File 'lib/macho/load_commands.rb', line 594

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

Instance Attribute Details

#versionObject (readonly)

Returns the value of attribute version.



589
590
591
# File 'lib/macho/load_commands.rb', line 589

def version
  @version
end