Class: Henshin::StandardPlugin
- Inherits:
-
Object
- Object
- Henshin::StandardPlugin
- Defined in:
- lib/henshin/plugin.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#config ⇒ Object
the main class for plugins to inherit from eg.
-
#extensions ⇒ Object
the main class for plugins to inherit from eg.
Instance Method Summary collapse
- #<=>(other) ⇒ Object
- #configure(override) ⇒ Object
-
#initialize ⇒ StandardPlugin
constructor
Defaults = {}.
Constructor Details
#initialize ⇒ StandardPlugin
Defaults = {}
13 14 15 16 17 18 |
# File 'lib/henshin/plugin.rb', line 13 def initialize # inputs are the file types it will take # output should be the type it creates @extensions = {:input => [], :output => ''} end |
Instance Attribute Details
#config ⇒ Object
the main class for plugins to inherit from eg
class MyPlugin < NoName::StandardPlugin
or it can (and should) inherit a subclass from below
9 10 11 |
# File 'lib/henshin/plugin.rb', line 9 def config @config end |
#extensions ⇒ Object
the main class for plugins to inherit from eg
class MyPlugin < NoName::StandardPlugin
or it can (and should) inherit a subclass from below
9 10 11 |
# File 'lib/henshin/plugin.rb', line 9 def extensions @extensions end |
Instance Method Details
#<=>(other) ⇒ Object
32 33 34 |
# File 'lib/henshin/plugin.rb', line 32 def <=>(other) self.priority <=> other.priority end |