Class: ELFTools::VersionTables::Requirement
- Inherits:
-
Object
- Object
- ELFTools::VersionTables::Requirement
- Defined in:
- lib/elftools/version_tables.rb
Overview
The versions a file needs of one of the files it is loaded with.
Instance Attribute Summary collapse
-
#file ⇒ String
readonly
The name of the file,
libc.so.6for instance. -
#versions ⇒ Array<ELFTools::VersionTables::Version>
readonly
The versions needed of it.
Instance Method Summary collapse
-
#initialize(file, versions) ⇒ Requirement
constructor
Instantiate a Requirement object.
Constructor Details
#initialize(file, versions) ⇒ Requirement
Instantiate a ELFTools::VersionTables::Requirement object.
123 124 125 126 |
# File 'lib/elftools/version_tables.rb', line 123 def initialize(file, versions) @file = file @versions = versions end |
Instance Attribute Details
#file ⇒ String (readonly)
Returns The name of the file, libc.so.6 for instance.
117 118 119 |
# File 'lib/elftools/version_tables.rb', line 117 def file @file end |
#versions ⇒ Array<ELFTools::VersionTables::Version> (readonly)
Returns The versions needed of it.
118 119 120 |
# File 'lib/elftools/version_tables.rb', line 118 def versions @versions end |