Method: Puppet::Pops::Types::PStructType#each

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

#eachObject

API:

  • public



1914
1915
1916
1917
1918
1919
1920
# File 'lib/puppet/pops/types/types.rb', line 1914

def each
  if block_given?
    elements.each { |elem| yield elem }
  else
    elements.to_enum
  end
end