Method: Puppet::MetaType::Manager#eachtype
- Defined in:
- lib/puppet/metatype/manager.rb
#eachtype {|t| ... } ⇒ Object
Iterates over all already loaded Type subclasses.
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 |