class Til::NoteEditor

Attributes

path[R]

Public Class Methods

new(note) click to toggle source
# File lib/til/services/note_editor.rb, line 5
def initialize(note)
  @path = note.path
end
open(note) click to toggle source
# File lib/til/services/note_editor.rb, line 9
def self.open(note)
  self.new(note)
end

Public Instance Methods

edit() click to toggle source
# File lib/til/services/note_editor.rb, line 13
def edit
  system(EDITOR, path)
end