Module: Cachable

Included in:
Dependency, DependencyCollector, Formula, Formulary, Keg, Requirement, Tab, Tap
Defined in:
extend/cachable.rb

Instance Method Summary collapse

Instance Method Details

#cacheObject



5
6
7
# File 'extend/cachable.rb', line 5

def cache
  @cache ||= {}
end

#clear_cacheObject



9
10
11
# File 'extend/cachable.rb', line 9

def clear_cache
  cache.clear
end