Module: Cachable

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

Instance Method Summary collapse

Instance Method Details

#cacheObject



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

def cache
  @cache ||= {}
end

#clear_cacheObject



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

def clear_cache
  cache.clear
end