instance method save_storable

Ruby on Rails 2.2.3

Since v2.2.3 Last seen in v2.2.3

Signature

save_storable(data, filename)

Saves a data structure into a file.

data

Data structure to be saved.

filename

Name of the file belonging to the data structure.

Parameters

data req
filename req
Source
# File activesupport/lib/active_support/vendor/xml-simple-1.0.11/xmlsimple.rb, line 31
    def save_storable(data, filename)
      cache_file = get_cache_filename(filename)
      File.open(cache_file, "w+") { |f| Marshal.dump(data, f) }
    end

Defined in activesupport/lib/active_support/vendor/xml-simple-1.0.11/xmlsimple.rb line 31 · 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