lib/rb-dayone.rb in rb-dayone-0.2.0 vs lib/rb-dayone.rb in rb-dayone-0.3.3

- old
+ new

@@ -40,9 +40,15 @@ # @return [String] the DayONe journal location def auto_journal_location @auto_journal_location ||= File.expand_path(plist_reader['NSNavLastRootDirectory']) end + # All DayOne entries, as file names + # @return [Array] all DayOne entries + def entries + Dir[File.join(journal_location, 'entries','*.doentry')] + end + private # The journal file location # @return [String] the location of the journal file def journal_file \ No newline at end of file