Class: Frazzle::Registry::Plugin
- Inherits:
-
Object
- Object
- Frazzle::Registry::Plugin
- Defined in:
- lib/frazzle/core/registry.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(registry, name) ⇒ Plugin
constructor
A new instance of Plugin.
- #load(context = Object.new) ⇒ Object
Constructor Details
#initialize(registry, name) ⇒ Plugin
Returns a new instance of Plugin.
23 24 25 26 |
# File 'lib/frazzle/core/registry.rb', line 23 def initialize(registry, name) @registry = registry @name = name end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
22 23 24 |
# File 'lib/frazzle/core/registry.rb', line 22 def name @name end |
Instance Method Details
#load(context = Object.new) ⇒ Object
27 28 29 |
# File 'lib/frazzle/core/registry.rb', line 27 def load(context=Object.new) @registry.load_plugin(@name, context) end |