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.



261
262
263
264
265
266
267
268
# File 'lib/macho/load_commands.rb', line 261

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.



256
257
258
# File 'lib/macho/load_commands.rb', line 256

def compatibility_version
  @compatibility_version
end

#current_versionObject (readonly)

Returns the value of attribute current_version.



256
257
258
# File 'lib/macho/load_commands.rb', line 256

def current_version
  @current_version
end

#nameObject (readonly)

Returns the value of attribute name.



256
257
258
# File 'lib/macho/load_commands.rb', line 256

def name
  @name
end

#timestampObject (readonly)

Returns the value of attribute timestamp.



256
257
258
# File 'lib/macho/load_commands.rb', line 256

def timestamp
  @timestamp
end