instance method get_cache_filename

Ruby on Rails 2.2.3

Since v2.2.3 Last seen in v2.2.3 Private

Signature

get_cache_filename(filename)

Returns the “cache filename” belonging to a filename, i.e. the extension ‘.xml’ in the original filename will be replaced by ‘.stor’. If filename does not have this extension, ‘.stor’ will be appended.

filename

Filename to get “cache filename” for.

Parameters

filename req
Source
# File activesupport/lib/active_support/vendor/xml-simple-1.0.11/xmlsimple.rb, line 102
    def get_cache_filename(filename)
      filename.sub(/(\.xml)?$/, '.stor')
    end

Defined in activesupport/lib/active_support/vendor/xml-simple-1.0.11/xmlsimple.rb line 102 · View on GitHub · Improve this page · Find usages on GitHub

Defined in XmlSimple::Cache

Type at least 2 characters to search.

↑↓ navigate · open · esc close