Class: Ask::Skills::Source::Gems

Inherits:
Base
  • Object
show all
Defined in:
lib/ask/skills/sources/gems.rb

Constant Summary collapse

GLOB =
"ask/skills/*/SKILL.md"

Instance Method Summary collapse

Instance Method Details

#loadObject



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

#nameObject



7
8
9
# File 'lib/ask/skills/sources/gems.rb', line 7

def name
  "Gems"
end