Class: PluginContext

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

Overview

Context used when executing the plugin’s links.rb script. This class defines the ‘functions’ that the links.rb script can call.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializePluginContext

Returns a new instance of PluginContext.



4
5
6
# File 'lib/quartz_flow/plugin.rb', line 4

def initialize
  @links = []
end

Instance Attribute Details

Returns the value of attribute links.



8
9
10
# File 'lib/quartz_flow/plugin.rb', line 8

def links
  @links
end

Instance Method Details



10
11
12
# File 'lib/quartz_flow/plugin.rb', line 10

def link(name, path)
  @links.push [name, path]
end