Class: MachO::DylibCommand
- Inherits:
-
LoadCommand
- Object
- MachOStructure
- LoadCommand
- MachO::DylibCommand
- Defined in:
- lib/macho/load_commands.rb
Overview
A load command representing some aspect of shared libraries, depending on filetype. Corresponds to LC_ID_DYLIB, LC_LOAD_DYLIB, LC_LOAD_WEAK_DYLIB, and LC_REEXPORT_DYLIB.
Instance Attribute Summary collapse
-
#compatibility_version ⇒ Fixnum
readonly
The library’s compatibility version number.
-
#current_version ⇒ Fixnum
readonly
The library’s current version number.
-
#name ⇒ Fixnum
readonly
The library’s path name (lc_str).
-
#timestamp ⇒ Fixnum
readonly
The library’s build time stamp.
Attributes inherited from LoadCommand
Instance Method Summary collapse
-
#initialize(offset, cmd, cmdsize, name, timestamp, current_version, compatibility_version) ⇒ DylibCommand
constructor
A new instance of DylibCommand.
Methods inherited from LoadCommand
Methods inherited from MachOStructure
Constructor Details
#initialize(offset, cmd, cmdsize, name, timestamp, current_version, compatibility_version) ⇒ DylibCommand
Returns a new instance of DylibCommand.
482 483 484 485 486 487 488 489 |
# File 'lib/macho/load_commands.rb', line 482 def initialize(offset, cmd, cmdsize, name, , current_version, compatibility_version) super(offset, cmd, cmdsize) @name = name = @current_version = current_version @compatibility_version = compatibility_version end |
Instance Attribute Details
#compatibility_version ⇒ Fixnum (readonly)
Returns the library’s compatibility version number.
476 477 478 |
# File 'lib/macho/load_commands.rb', line 476 def compatibility_version @compatibility_version end |
#current_version ⇒ Fixnum (readonly)
Returns the library’s current version number.
473 474 475 |
# File 'lib/macho/load_commands.rb', line 473 def current_version @current_version end |
#name ⇒ Fixnum (readonly)
Returns the library’s path name (lc_str).
467 468 469 |
# File 'lib/macho/load_commands.rb', line 467 def name @name end |
#timestamp ⇒ Fixnum (readonly)
Returns the library’s build time stamp.
470 471 472 |
# File 'lib/macho/load_commands.rb', line 470 def end |