lib/howzit/buildnote.rb in howzit-2.0.0 vs lib/howzit/buildnote.rb in howzit-2.0.1
- old
+ new
@@ -7,9 +7,10 @@
attr_reader :metadata, :title
def initialize(file: nil, args: [])
@topics = []
+ create_note if note_file.nil?
@metadata = IO.read(note_file).split(/^#/)[0].strip.get_metadata
read_help(file)
end