Method: Puppet::Pops::Types::PObjectType#functions

Defined in:
lib/puppet/pops/types/p_object_type.rb

#functions(include_parent = false) ⇒ Hash{String=>PFunction}

Returns the functions of this ‘Object` type. If include_parent is `true`, then all inherited functions will be included in the returned `Hash`.

Parameters:

  • include_parent (Boolean) (defaults to: false)

    ‘true` if inherited functions should be included

Returns:

  • (Hash{String=>PFunction})

    a hash with the functions



996
997
998
# File 'lib/puppet/pops/types/p_object_type.rb', line 996

def functions(include_parent = false)
  get_members(include_parent, :functions)
end