Class: Henshin::StandardPlugin

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

Direct Known Subclasses

Generator, LayoutParser

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeStandardPlugin

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

#configObject

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

#extensionsObject

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