module Puppet::Pops::Types::InvocableMember

Interface implemented by attribute and function members

Public Instance Methods

invoke(receiver, scope, args, &block) click to toggle source

Performs type checking of arguments and invokes the method that corresponds to this method. The result of the invocation is returned

@param receiver [Object] The receiver of the call @param scope [Puppet::Parser::Scope] The caller scope @param args [Array] Array of arguments. @return [Object] The result returned by the member function or attribute

@api private

   # File lib/puppet/pops/types/type_with_members.rb
23 def invoke(receiver, scope, args, &block)
24   raise NotImplementedError, "'#{self.class.name}' should implement #invoke"
25 end