Module: NoteAble

Defined in:
lib/noteable.rb

Class Method Summary collapse

Class Method Details

.find_all_and_printObject



8
9
10
# File 'lib/noteable.rb', line 8

def self.find_all_and_print
	View.render_page { render_notes group_by_file(parse_files) }
end

.open(id) ⇒ Object



12
13
14
# File 'lib/noteable.rb', line 12

def self.open id
	exec "subl #{parse_files.find { |note| note.filepath.id == id.to_i }.filepath.filepath}"
end