class FeedTheZettelkasten::NotesDir

Attributes

file_extension[R]
path[R]

Public Class Methods

new(path, file_extension: 'md') click to toggle source
# File lib/feed_the_zettelkasten/notes_dir.rb, line 7
def initialize(path, file_extension: 'md')
  @path = Pathname.new(path)
  @file_extension = file_extension
end

Public Instance Methods

created_on(date) click to toggle source
# File lib/feed_the_zettelkasten/notes_dir.rb, line 12
def created_on(date)
  Notes.new(path.glob("*#{ date.strftime('%Y%m%d') }*.#{ file_extension }"))
end