Class: MdRecord::Loader
- Inherits:
-
Object
- Object
- MdRecord::Loader
- Defined in:
- lib/md_record/loader.rb
Instance Method Summary collapse
-
#initialize(path:) ⇒ Loader
constructor
A new instance of Loader.
- #load ⇒ Object
Constructor Details
#initialize(path:) ⇒ Loader
Returns a new instance of Loader.
5 6 7 |
# File 'lib/md_record/loader.rb', line 5 def initialize(path:) @path = Pathname.new(path). end |
Instance Method Details
#load ⇒ Object
9 10 11 |
# File 'lib/md_record/loader.rb', line 9 def load markdown_files.map { |file| yield file } end |