Module: Gap::HashChain::Package
- Defined in:
- lib/gap50/cache/hashchain.rb
Constant Summary collapse
- PACKAGES =
{}
Class Method Summary collapse
Class Method Details
.[](a) ⇒ Object
18 19 20 21 22 23 24 |
# File 'lib/gap50/cache/hashchain.rb', line 18 def self.[](a) if !PACKAGES.include?(a) raise ArgumentError, "Not exists #{a}" else PACKAGES[a] end end |
.call(hnode) ⇒ Object
26 27 28 |
# File 'lib/gap50/cache/hashchain.rb', line 26 def self.call(hnode) self[hnode.getone(:package)] end |