instance method get_cache_filename

Ruby on Rails 2.2.3

Last seen in v2.2.3 Private — implementation detail, not part of the public API

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.

Use the arrow keys to navigate results, Enter to open one, Escape to close.

Keyboard shortcuts

/
Focus search
⌘K / Ctrl-K
Command palette
?
This help
Esc
Close