Class: ELFTools::VersionTables::Requirement

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(file, versions) ⇒ Requirement

Instantiate a ELFTools::VersionTables::Requirement object.

Parameters:



123
124
125
126
# File 'lib/elftools/version_tables.rb', line 123

def initialize(file, versions)
  @file = file
  @versions = versions
end

Instance Attribute Details

#fileString (readonly)

Returns The name of the file, libc.so.6 for instance.

Returns:

  • (String)

    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

#versionsArray<ELFTools::VersionTables::Version> (readonly)

Returns The versions needed of it.

Returns:



118
119
120
# File 'lib/elftools/version_tables.rb', line 118

def versions
  @versions
end