Class: Puppet::Pops::Types::KeyMismatch Abstract
- Defined in:
- lib/puppet/pops/types/type_mismatch_describer.rb
Overview
This class is abstract.
Direct Known Subclasses
Instance Attribute Summary collapse
- #key ⇒ Object readonly
Attributes inherited from Mismatch
Instance Method Summary collapse
- #==(o) ⇒ Object
- #hash ⇒ Object
-
#initialize(path, key) ⇒ KeyMismatch
constructor
A new instance of KeyMismatch.
Methods inherited from Mismatch
#canonical_path, #chop_path, #format, #merge, #message, #path_string, #to_s
Methods included from TenseVariants
#it_does_not_expect, #it_expects, #it_has_no
Constructor Details
#initialize(path, key) ⇒ KeyMismatch
Returns a new instance of KeyMismatch.
176 177 178 179 |
# File 'lib/puppet/pops/types/type_mismatch_describer.rb', line 176 def initialize(path, key) super(path) @key = key end |
Instance Attribute Details
#key ⇒ Object (readonly)
174 175 176 |
# File 'lib/puppet/pops/types/type_mismatch_describer.rb', line 174 def key @key end |