Method: FileRecord::Persistence::ClassMethods#find
- Defined in:
- lib/file_record/persistence.rb
#find(name) ⇒ Object
7 8 9 10 11 12 13 |
# File 'lib/file_record/persistence.rb', line 7 def find(name) if File.exists? filename(name) self.new.from_json(File.read(filename(name))) else nil end end |