Class: Puppet::Functions::PuppetFunction

Inherits:
Function show all
Defined in:
lib/puppet/functions.rb

Overview

Base class for all functions implemented in the puppet language

Instance Attribute Summary

Attributes inherited from Pops::Functions::Function

#closure_scope, #loader

Class Method Summary collapse

Methods inherited from Function

argument_mismatch, builder, dispatch, local_types, new

Methods inherited from Pops::Functions::Function

#call, #call_function, dispatcher, #initialize, signatures

Constructor Details

This class inherits a constructor from Puppet::Pops::Functions::Function

Class Method Details

.init_dispatch(a_closure) ⇒ Object



382
383
384
385
# File 'lib/puppet/functions.rb', line 382

def self.init_dispatch(a_closure)
  # A closure is compatible with a dispatcher - they are both callable signatures
  dispatcher.add(a_closure)
end