instance method
save_storable
Ruby on Rails 2.2.3
Since v2.2.3 Last seen in v2.2.3Signature
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
-
datareq -
filenamereq
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