Class: PluginContext
- Inherits:
-
Object
- Object
- PluginContext
- 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
-
#links ⇒ Object
readonly
Returns the value of attribute links.
Instance Method Summary collapse
-
#initialize ⇒ PluginContext
constructor
A new instance of PluginContext.
- #link(name, path) ⇒ Object
Constructor Details
#initialize ⇒ PluginContext
Returns a new instance of PluginContext.
4 5 6 |
# File 'lib/quartz_flow/plugin.rb', line 4 def initialize @links = [] end |
Instance Attribute Details
#links ⇒ Object (readonly)
Returns the value of attribute links.
8 9 10 |
# File 'lib/quartz_flow/plugin.rb', line 8 def links @links end |
Instance Method Details
#link(name, path) ⇒ Object
10 11 12 |
# File 'lib/quartz_flow/plugin.rb', line 10 def link(name, path) @links.push [name, path] end |