Method: Cyborg::Plugin#initialize
- Defined in:
- lib/cyborg/plugin.rb
#initialize(options) ⇒ Plugin
Returns a new instance of Plugin.
6 7 8 9 10 11 12 13 14 15 16 |
# File 'lib/cyborg/plugin.rb', line 6 def initialize() @name = .delete(:engine).downcase @gem = Gem.loaded_specs[.delete(:gem)] config() # Store the gem path for access later when overriding root parent_module.instance_variable_set(:@gem_path, root) parent_module.instance_variable_set(:@cyborg_plugin_name, name) add_assets end |