Module: Cachable

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

Instance Method Summary collapse

Instance Method Details

#cacheObject



2
3
4
# File 'Library/Homebrew/extend/cachable.rb', line 2

def cache
  @cache ||= {}
end

#clear_cacheObject



6
7
8
# File 'Library/Homebrew/extend/cachable.rb', line 6

def clear_cache
  cache.clear
end