Class: GemPlugin::Base
- Inherits:
-
Object
- Object
- GemPlugin::Base
- Defined in:
- lib/gem_plugin.rb
Overview
This base class for plugins really does nothing more than wire up the new class into the right category. It is not thread-safe yet but will be soon.
Instance Attribute Summary collapse
-
#options ⇒ Object
readonly
Returns the value of attribute options.
Class Method Summary collapse
-
.category=(category) ⇒ Object
See Mongrel::Plugin for an explanation.
-
.inherited(klass) ⇒ Object
See Mongrel::Plugin for an explanation.
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ Base
constructor
A new instance of Base.
Constructor Details
#initialize(options = {}) ⇒ Base
Returns a new instance of Base.
264 265 266 |
# File 'lib/gem_plugin.rb', line 264 def initialize( = {}) @options = end |
Instance Attribute Details
#options ⇒ Object (readonly)
Returns the value of attribute options.
249 250 251 |
# File 'lib/gem_plugin.rb', line 249 def @options end |
Class Method Details
.category=(category) ⇒ Object
See Mongrel::Plugin for an explanation.
260 261 262 |
# File 'lib/gem_plugin.rb', line 260 def Base.category=(category) @@category = category end |