Class: Puppet::Pops::Types::ExtraneousKey

Inherits:
KeyMismatch show all
Defined in:
lib/puppet/pops/types/type_mismatch_describer.rb

Direct Known Subclasses

InvalidParameter

Instance Attribute Summary

Attributes inherited from KeyMismatch

#key

Attributes inherited from Mismatch

#path

Instance Method Summary collapse

Methods inherited from KeyMismatch

#==, #hash, #initialize

Methods inherited from Mismatch

#==, #canonical_path, #chop_path, #hash, #initialize, #merge, #path_string, #to_s

Constructor Details

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

Instance Method Details

#message(variant, position) ⇒ Object



157
158
159
# File 'lib/puppet/pops/types/type_mismatch_describer.rb', line 157

def message(variant, position)
  "#{variant}#{position} has no '#{@key}' key"
end