Module: Pakyow::Application::Behavior::Plugins Private
- Extended by:
- Support::Extension
- Included in:
- Pakyow::Application
- Defined in:
- lib/pakyow/application/behavior/plugins.rb
This module is part of a private API. You should avoid using this module if possible, as it may be removed or be changed in the future.
Instance Attribute Summary collapse
- #plugs ⇒ Object readonly private
Instance Method Summary collapse
Instance Attribute Details
#plugs ⇒ Object (readonly)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
19 20 21 |
# File 'lib/pakyow/application/behavior/plugins.rb', line 19 def plugs @plugs end |
Instance Method Details
#plug(name, instance = :default) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
21 22 23 24 25 |
# File 'lib/pakyow/application/behavior/plugins.rb', line 21 def plug(name, instance = :default) @plugs.find { |plug| plug.class.plugin_name == name && plug.class.__object_name.namespace.parts.last == instance } end |