lib/liberty_buildpack/util/cache/admin_cache.rb
def use_cache
      if @cached.exist?
        @cached.open(File::RDONLY) do |cached_file|
          yield cached_file
        end
        true
      else
        false
      end
    end
# Yields an open file containing the cached data.
#
# @return [Boolean] +true+ if and only if data is cached
Yields an open file containing the cached data.
Yields an open file containing the cached data .
def use_cache
      if @cached.exist?
        @cached.open(File::RDONLY) do |cached_file|
          yield cached_file
        end
        true
      else
        false
      end
    end
def use_cache if @cached . exist? @cached . open ( File :: RDONLY ) do | cached_file | yield cached_file end true else false end end
Yields an open file containing the cached data.
Yields an open file containing the cached data .
+true+ if and only if data is cached
+ true + if and only if data is cached
Boolean