class Puppet::Pops::Types::PObjectType::PFunction

Describes a named Function in an Object type @api public

Public Class Methods

feature_type() click to toggle source

@api private

    # File lib/puppet/pops/types/p_object_type.rb
399 def self.feature_type
400   'function'
401 end
new(name, container, init_hash) click to toggle source

@param name [String] The name of the attribute @param container [PObjectType] The containing object type @param init_hash [Hash{String=>Object}] Hash containing function options @api public

    # File lib/puppet/pops/types/p_object_type.rb
390 def initialize(name, container, init_hash)
391   super(name, container, TypeAsserter.assert_instance_of(["initializer for function '%s'", name], TYPE_FUNCTION, init_hash))
392 end

Public Instance Methods

callable_type() click to toggle source
    # File lib/puppet/pops/types/p_object_type.rb
394 def callable_type
395   type
396 end