Method: Retrospec::Puppet::Functions.dispatch

Defined in:
lib/retrospec/plugins/v1/plugin/generators/parsers/function.rb

.dispatch(meth_name, &block) ⇒ Object



48
49
50
51
52
# File 'lib/retrospec/plugins/v1/plugin/generators/parsers/function.rb', line 48

def self.dispatch(meth_name, &block)
    @params = [] # reset the variable
    args = block.call
    @model.dispatched_methods[meth_name] = {:name => meth_name, :args => args}
end