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
11 12 13 14 15 16 17 18 19 |
# File 'lib/ask/skills/sources/gems.rb', line 11 def load skills = [] Gem.find_files(GLOB).each do |path| 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 |