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
-
#initialize ⇒ StandardPlugin
constructor
A new instance of StandardPlugin.
Constructor Details
#initialize ⇒ StandardPlugin
Returns a new instance of StandardPlugin.
11 12 13 14 15 16 17 |
# File 'lib/henshin/plugin.rb', line 11 def initialize # inputs are the file types it will take # output should be the type it creates @extensions = {:input => [], :output => ''} @config = {} 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 |