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
- #call(*args) ⇒ Object
-
#initialize(method, config, name) ⇒ Setup
constructor
A new instance of Setup.
Constructor Details
#initialize(method, config, name) ⇒ Setup
Returns a new instance of Setup.
68 69 70 71 72 |
# File 'lib/ffwd/plugin.rb', line 68 def initialize method, config, name @method = method @config = config @name = name end |
Instance Attribute Details
#config ⇒ Object (readonly)
Returns the value of attribute config.
66 67 68 |
# File 'lib/ffwd/plugin.rb', line 66 def config @config end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
66 67 68 |
# File 'lib/ffwd/plugin.rb', line 66 def name @name end |
Instance Method Details
#call(*args) ⇒ Object
74 75 76 |
# File 'lib/ffwd/plugin.rb', line 74 def call *args @method.call(*args) end |