Class: RubyCoded::Skills::MarkdownLoader
- Inherits:
-
Object
- Object
- RubyCoded::Skills::MarkdownLoader
- Defined in:
- lib/ruby_coded/skills/markdown_loader.rb
Overview
Loads project-local markdown skill files.
Constant Summary collapse
- SUPPORTED_MODES =
%w[chat plan agent].freeze
Instance Method Summary collapse
-
#initialize(project_root:) ⇒ MarkdownLoader
constructor
A new instance of MarkdownLoader.
- #load_files ⇒ Object
- #load_report ⇒ Object
Constructor Details
#initialize(project_root:) ⇒ MarkdownLoader
Returns a new instance of MarkdownLoader.
11 12 13 |
# File 'lib/ruby_coded/skills/markdown_loader.rb', line 11 def initialize(project_root:) @project_root = project_root end |
Instance Method Details
#load_files ⇒ Object
15 16 17 |
# File 'lib/ruby_coded/skills/markdown_loader.rb', line 15 def load_files load_report[:entries] end |
#load_report ⇒ Object
19 20 21 22 23 |
# File 'lib/ruby_coded/skills/markdown_loader.rb', line 19 def load_report return empty_report unless Dir.exist?(skills_dir) build_report(skill_paths) end |