Method: Puppet::MetaType::Manager#eachtype

Defined in:
lib/puppet/metatype/manager.rb

#eachtype {|t| ... } ⇒ Object

Iterates over all already loaded Type subclasses.

Yields:

  • (t)

    a block receiving each type

Yield Parameters:

Yield Returns:

  • (Object)

    the last returned object is also returned from this method

Returns:

  • (Object)

    the last returned value from the block.


40
41
42
43
44
45
46
47
# File 'lib/puppet/metatype/manager.rb', line 40

def eachtype
  @types.each do |_name, type|
    # Only consider types that have names
    # if ! type.parameters.empty? or ! type.validproperties.empty?
    yield type
    # end
  end
end