Class: Serienrenamer::Pluginbase

Inherits:
Object
  • Object
show all
Defined in:
lib/serienrenamer/plugin.rb

Overview

Base plugin from which all exisiting plugins inherits

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.registered_pluginsObject (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

.inspectObject

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_nameObject



15
# File 'lib/serienrenamer/plugin.rb', line 15

def self.plugin_name; "PluginBase" end

.to_sObject



18
19
20
# File 'lib/serienrenamer/plugin.rb', line 18

def self.to_s
  self.plugin_name
end

.typeObject

or :filter



16
# File 'lib/serienrenamer/plugin.rb', line 16

def self.type; :information end