Module: Cachable

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

Instance Method Summary collapse

Instance Method Details

#cacheObject


4
5
6
# File 'Library/Homebrew/extend/cachable.rb', line 4

def cache
  @cache ||= {}
end

#clear_cacheObject


8
9
10
# File 'Library/Homebrew/extend/cachable.rb', line 8

def clear_cache
  cache.clear
end