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, 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

#configObject (readonly)

Returns the value of attribute config.



70
71
72
# File 'lib/ffwd/plugin.rb', line 70

def config
  @config
end

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