Class: Frazzle::Registry::Plugin

Inherits:
Object
  • Object
show all
Defined in:
lib/frazzle/core/registry.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#nameObject (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