Class: Ask::Skills::Source::Gems
- Defined in:
- lib/ask/skills/sources/gems.rb
Constant Summary collapse
- GLOB =
"ask/skills/*/SKILL.md"
Instance Method Summary collapse
Instance Method Details
#load ⇒ Object
17 18 19 20 21 22 23 24 25 26 27 28 29 |
# File 'lib/ask/skills/sources/gems.rb', line 17 def load skills = [] Gem.find_files(GLOB).each do |path| # Skip skills shipped with the ask-skills gem — they are loaded # separately by the built-in Filesystem source. next if File.realpath(path).start_with?(BUILTIN_DIR) if (skill = parse_skill(path)) skills << skill end end skills end |
#name ⇒ Object
7 8 9 |
# File 'lib/ask/skills/sources/gems.rb', line 7 def name "Gems" end |