Module: Rabal::Plugin

Defined in:
lib/rabal/plugin/bin.rb,
lib/rabal/plugin/ext.rb,
lib/rabal/plugin/core.rb,
lib/rabal/plugin/spec.rb,
lib/rabal/plugin/test.rb,
lib/rabal/plugin/license.rb,
lib/rabal/plugin/website.rb,
lib/rabal/plugin/rubyforge.rb,
lib/rabal/plugin/foundation.rb

Defined Under Namespace

Classes: Bin, Core, Ext, Foundation, License, Rubyforge, Spec, Test, Website

Class Method Summary collapse

Class Method Details

.Base(register_path) ⇒ Object

This is the happen’n way to do things. Camping does it, GemPlugin does it. Come on You can do it too.

Put register_path into the class variable @@path of Plugin::Foundation and then return the Plugin::Foundation class which will be used as the parent class for the new class.

Upon declaration of the new class, Foundation.inherited will be invoked which will register the new class with GemPlugin::Manager an clear out @@path



162
163
164
165
# File 'lib/rabal/plugin/foundation.rb', line 162

def Plugin::Base(register_path)
    Plugin::Foundation.register_as = register_path
    Plugin::Foundation
end