class Elf::Utilities::FilePool

Pool for ELF files.

This pool is useful for tools that recurse over a tree of dependencies to avoid creating multiple instances of Elf::File accessing the same file.

Public Class Methods

[](file) click to toggle source
# File lib/elf/utils/pool.rb, line 30
def self.[](file)
  realfile = Pathname.new(file).realpath
  
  @pool[realfile] ||= Elf::File.new(realfile)
end