Class: Kreator::PluginToolLoader
- Inherits:
-
Object
- Object
- Kreator::PluginToolLoader
- Defined in:
- lib/kreator/plugin_tool.rb
Constant Summary collapse
- NAME_PATTERN =
/\A[a-zA-Z0-9_-]+\z/
Instance Method Summary collapse
Instance Method Details
#load_tools(plugins) ⇒ Object
90 91 92 93 94 |
# File 'lib/kreator/plugin_tool.rb', line 90 def load_tools(plugins) tools = plugins.flat_map { |plugin| load_plugin_tools(plugin) } ensure_unique!(tools) tools end |
#validate(plugin) ⇒ Object
96 97 98 99 100 101 |
# File 'lib/kreator/plugin_tool.rb', line 96 def validate(plugin) load_plugin_tools(plugin) [] rescue StandardError => e [e.] end |