Class: Puppet::Pops::Types::Enumeration

Inherits:
Object
  • Object
show all
Defined in:
lib/puppet/pops/types/enumeration.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.enumerator(o) ⇒ Object



6
7
8
9
# File 'lib/puppet/pops/types/enumeration.rb', line 6

def self.enumerator(o)
  Puppet.deprecation_warning(_('Enumeration.enumerator is deprecated. Use Iterable.on instead'))
  Iterable.on(o)
end

Instance Method Details

#enumerator(o) ⇒ Object



11
12
13
14
# File 'lib/puppet/pops/types/enumeration.rb', line 11

def enumerator(o)
  Puppet.deprecation_warning(_('Enumeration.enumerator is deprecated. Use Iterable.on instead'))
  Iterable.on(o)
end