Class | Atom::FileCache |
In: |
lib/atom/cache.rb
|
Parent: | Object |
# File lib/atom/cache.rb, line 162 def [] key File.read(self.to_file(key)) rescue Errno::ENOENT nil end
# File lib/atom/cache.rb, line 168 def []= key, value File.open(self.to_file(key), 'w') do |f| f.write(value) end end