Module: Netzke::Core::Plugins::ClassMethods
- Defined in:
- lib/netzke/core/plugins.rb
Instance Method Summary collapse
-
#plugin(name, &block) ⇒ Object
Defines a plugin.
Instance Method Details
#plugin(name, &block) ⇒ Object
Defines a plugin
13 14 15 16 17 18 |
# File 'lib/netzke/core/plugins.rb', line 13 def plugin(name, &block) register_plugin(name) component name, eager_load: true do |c| block.call(c) if block_given? end end |