Class: CoachZed::Catalog::Loader
- Inherits:
-
Object
- Object
- CoachZed::Catalog::Loader
- Defined in:
- lib/coach_zed/catalog.rb
Constant Summary collapse
- IGNORED_BASENAMES =
%w[INDEX.md TEMPLATE.md].freeze
Instance Method Summary collapse
-
#initialize(root) ⇒ Loader
constructor
A new instance of Loader.
- #load ⇒ Object
Constructor Details
Instance Method Details
#load ⇒ Object
84 85 86 87 88 89 90 91 |
# File 'lib/coach_zed/catalog.rb', line 84 def load Dir.glob(@root.join("**/*.md")).sort.filter_map do |file| path = Pathname(file) next if ignored?(path) parse_entry(path) end end |