class Sprockets::Cache::FileStore

def safe_open(path, &block)

Experimental RBS support (using type sampling data from the type_fusion project).

def safe_open: (String path, ) -> String?

This signature was generated using 36 samples from 4 applications.

def safe_open(path, &block)
  if File.exist?(path)
    File.open(path, 'rb', &block)
  end
rescue Errno::ENOENT
end