Class: PluginManagerHelper
- Defined in:
- lib/ceedling/plugin_manager_helper.rb
Overview
Ceedling - Test-Centered Build System for C
ThrowTheSwitch.org
Copyright (c) 2010-25 Mike Karlesky, Mark VanderVoord, & Greg Williams
SPDX-License-Identifier: MIT
Instance Method Summary collapse
- #include?(plugins, name) ⇒ Boolean
- #instantiate_plugin(plugin, system_objects, name, root_path) ⇒ Object
Instance Method Details
#include?(plugins, name) ⇒ Boolean
10 11 12 13 14 15 16 17 18 19 |
# File 'lib/ceedling/plugin_manager_helper.rb', line 10 def include?(plugins, name) include = false plugins.each do |plugin| if (plugin.name == name) include = true break end end return include end |
#instantiate_plugin(plugin, system_objects, name, root_path) ⇒ Object
21 22 23 |
# File 'lib/ceedling/plugin_manager_helper.rb', line 21 def instantiate_plugin(plugin, system_objects, name, root_path) return eval( "#{plugin}.new(system_objects, name, root_path)" ) end |