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

#configObject (readonly)

Returns the value of attribute config.



66
67
68
# File 'lib/ffwd/plugin.rb', line 66

def config
  @config
end

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