Class: FFWD::Plugin::Setup
- Inherits:
-
Object
- Object
- FFWD::Plugin::Setup
- Defined in:
- lib/ffwd/plugin.rb
Instance Attribute Summary collapse
-
#config ⇒ Object
readonly
Returns the value of attribute config.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(name, setup, config) ⇒ Setup
constructor
A new instance of Setup.
- #setup(*args) ⇒ Object
Constructor Details
#initialize(name, setup, config) ⇒ Setup
Returns a new instance of Setup.
72 73 74 75 76 |
# File 'lib/ffwd/plugin.rb', line 72 def initialize name, setup, config @name = name @setup = setup @config = config end |
Instance Attribute Details
#config ⇒ Object (readonly)
Returns the value of attribute config.
70 71 72 |
# File 'lib/ffwd/plugin.rb', line 70 def config @config end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
70 71 72 |
# File 'lib/ffwd/plugin.rb', line 70 def name @name end |
Instance Method Details
#setup(*args) ⇒ Object
78 79 80 |
# File 'lib/ffwd/plugin.rb', line 78 def setup *args @setup.call @config, *args end |