Class: FFWD::Plugin::Setup

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#configObject (readonly)

Returns the value of attribute config.



72
73
74
# File 'lib/ffwd/plugin.rb', line 72

def config
  @config
end

#nameObject (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