Method: Note.touch

Defined in:
lib/models/files/note.rb

.touch(path) ⇒ Object



5
6
7
8
9
10
# File 'lib/models/files/note.rb', line 5

def self.touch(path)
  note = new(path)
  FileUtils.makedirs(note.dirname)
  FileUtils.touch(note.path)
  return note
end