lib/opal/hike.rb
# A cached version of `File.stat`. Returns nil if the file does
# not exist.
A cached version of `File.stat`. Returns nil if the file does
not exist.
A cached version of ` File . stat ` . Returns nil if the file does not exist .
def stat(path)
        key = path.to_s
        if @stats.key?(key)
          @stats[key]
        elsif File.exist?(path)
          @stats[key] = File.stat(path)
        else
          @stats[key] = nil
        end
      end
def stat ( path ) key = path . to_s if @stats . key? ( key ) @stats [ key ] elsif File . exist? ( path ) @stats [ key ] = File . stat ( path ) else @stats [ key ] = nil end end
A cached version of `File.stat`.
A cached version of ` File . stat ` .
path
<not_specific>