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, config, setup) ⇒ Setup
constructor
A new instance of Setup.
- #setup(*args) ⇒ Object
Constructor Details
#initialize(name, config, setup) ⇒ Setup
Returns a new instance of Setup.
74 75 76 77 78 |
# File 'lib/ffwd/plugin.rb', line 74 def initialize name, config, setup @name = name @config = config @setup = setup end |
Instance Attribute Details
#config ⇒ Object (readonly)
Returns the value of attribute config.
72 73 74 |
# File 'lib/ffwd/plugin.rb', line 72 def config @config end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
72 73 74 |
# File 'lib/ffwd/plugin.rb', line 72 def name @name end |
Instance Method Details
#setup(*args) ⇒ Object
80 81 82 |
# File 'lib/ffwd/plugin.rb', line 80 def setup *args @setup.call @config, *args end |