Module: Bibliothecary::Analyser::TryCache
- Included in:
- MultiParsers::CycloneDX, MultiParsers::DependenciesCSV
- Defined in:
- lib/bibliothecary/analyser.rb
Instance Method Summary collapse
Instance Method Details
#try_cache(options, key) ⇒ Object
38 39 40 41 42 43 44 45 46 |
# File 'lib/bibliothecary/analyser.rb', line 38 def try_cache(, key) if [:cache] [:cache][key] ||= yield [:cache][key] else yield end end |