Class: Diggit::Plugin Abstract
- Inherits:
-
Object
- Object
- Diggit::Plugin
- Defined in:
- lib/dgit/plugins.rb
Overview
This class is abstract.
Abstract superclass for all plugins.
Base class for plugins. They have associated options.
Instance Attribute Summary collapse
-
#options ⇒ Hash<String, Object>
readonly
The hash of options.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(options) ⇒ Plugin
constructor
A new instance of Plugin.
- #name ⇒ Object
Constructor Details
#initialize(options) ⇒ Plugin
Returns a new instance of Plugin.
32 33 34 |
# File 'lib/dgit/plugins.rb', line 32 def initialize() @options = end |
Instance Attribute Details
Class Method Details
.name ⇒ Object
40 41 42 |
# File 'lib/dgit/plugins.rb', line 40 def self.name to_s.underscore end |
Instance Method Details
#name ⇒ Object
36 37 38 |
# File 'lib/dgit/plugins.rb', line 36 def name self.class.name end |