class Megam::FileCache

Public Instance Methods

store() click to toggle source
   # File lib/megam/core/file_cache.rb
 4 def store
 5   file_path_array = File.split(path)
 6   file_name = file_path_array.pop
 7   cache_path = create_cache_path(File.join(file_path_array))
 8   File.open(File.join(cache_path, file_name), "w", perm) do |io|
 9     io.print(contents)
10   end
11 end