Class: MachO::DylibCommand

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, name, timestamp, current_version, compatibility_version) ⇒ DylibCommand

Returns a new instance of DylibCommand.



267
268
269
270
271
272
273
274
# File 'lib/macho/load_commands.rb', line 267

def initialize(offset, cmd, cmdsize, name, timestamp, current_version,
    compatibility_version)
  super(offset, cmd, cmdsize)
  @name = name
  @timestamp = timestamp
  @current_version = current_version
  @compatibility_version = compatibility_version
end

Instance Attribute Details

#compatibility_versionObject (readonly)

Returns the value of attribute compatibility_version.



262
263
264
# File 'lib/macho/load_commands.rb', line 262

def compatibility_version
  @compatibility_version
end

#current_versionObject (readonly)

Returns the value of attribute current_version.



262
263
264
# File 'lib/macho/load_commands.rb', line 262

def current_version
  @current_version
end

#nameObject (readonly)

Returns the value of attribute name.



262
263
264
# File 'lib/macho/load_commands.rb', line 262

def name
  @name
end

#timestampObject (readonly)

Returns the value of attribute timestamp.



262
263
264
# File 'lib/macho/load_commands.rb', line 262

def timestamp
  @timestamp
end