Sha256: 5bf1fa6c239f998d65167794077d6653beba00a246786462d9826e08cda7b544
Contents?: true
Size: 951 Bytes
Versions: 1
Compression:
Stored size: 951 Bytes
Contents
require 'rupert/rpm/signature/entry' require 'rupert/rpm/signature/store' module Rupert class RPM class Signature class Index # Initializes a new signature index, given the header's entries and the # store containing actual data. # # @param entries [Hash] a map of # Rupert::RPM::Signature::Entry, indexed by tag # @param store [Rupert::RPM::Signature::Store] store containing # data pointed by entries def initialize(entries, store) @entries = entries @store = store end # Retrieves data pointed by given tag. # # @param tag [Fixnum] data type # @return [Object] data associated to given tag, with variable format # depending on how it's stored def get(tag) entry = @entries[tag] @store.fetch(entry) end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rupert-0.0.1 | lib/rupert/rpm/signature/index.rb |