Class: Serienrenamer::Pluginbase
- Inherits:
-
Object
- Object
- Serienrenamer::Pluginbase
- Defined in:
- lib/serienrenamer/plugin.rb
Overview
Base plugin from which all exisiting plugins inherits
Direct Known Subclasses
Serienrenamer::Plugin::EpisodeIdentifier, Serienrenamer::Plugin::SerienjunkiesOrgFeed, Serienrenamer::Plugin::Textfile, Serienrenamer::Plugin::Umlauts
Class Attribute Summary collapse
-
.registered_plugins ⇒ Object
readonly
Returns the value of attribute registered_plugins.
Class Method Summary collapse
-
.inherited(child) ⇒ Object
if you inherit from this class, the child gets added to the “registered plugins” array.
-
.inspect ⇒ Object
Is required because Ruby 2.0 prints the whole fully qualified class name.
- .plugin_name ⇒ Object
- .to_s ⇒ Object
-
.type ⇒ Object
or :filter.
Class Attribute Details
.registered_plugins ⇒ Object (readonly)
Returns the value of attribute registered_plugins.
6 7 8 |
# File 'lib/serienrenamer/plugin.rb', line 6 def registered_plugins @registered_plugins end |
Class Method Details
.inherited(child) ⇒ Object
if you inherit from this class, the child gets added to the “registered plugins” array
11 12 13 |
# File 'lib/serienrenamer/plugin.rb', line 11 def self.inherited(child) self.registered_plugins << child end |
.inspect ⇒ Object
Is required because Ruby 2.0 prints the whole fully qualified class name
23 24 25 |
# File 'lib/serienrenamer/plugin.rb', line 23 def self.inspect return self.to_s end |
.plugin_name ⇒ Object
15 |
# File 'lib/serienrenamer/plugin.rb', line 15 def self.plugin_name; "PluginBase" end |
.to_s ⇒ Object
18 19 20 |
# File 'lib/serienrenamer/plugin.rb', line 18 def self.to_s self.plugin_name end |
.type ⇒ Object
or :filter
16 |
# File 'lib/serienrenamer/plugin.rb', line 16 def self.type; :information end |