Class: Puppet::Pops::Types::HashIterator Private

Inherits:
Iterator show all
Defined in:
lib/puppet/pops/types/iterable.rb

Overview

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

Special iterator used when iterating over hashes. Returns ‘true` for `#hash_style?` so that it is possible to differentiate between two element arrays and key => value associations

Instance Method Summary collapse

Methods inherited from Iterator

#all?, #any?, #element_type, #initialize, #map, #method_missing, #next, #reduce, #respond_to_missing?, #reverse_each, #size, #step, #step_iterator, #to_s, #unbounded?

Methods included from Iterable

asserted_iterable, #each, #element_type, on, #reverse_each, #step, #to_a, unbounded?, #unbounded?

Constructor Details

This class inherits a constructor from Puppet::Pops::Types::Iterator

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Puppet::Pops::Types::Iterator

Instance Method Details

#hash_style?Boolean

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns:

  • (Boolean)


281
282
283
# File 'lib/puppet/pops/types/iterable.rb', line 281

def hash_style?
  true
end