Class: Puppet::Pops::Types::KeyMismatch Abstract Private
- Defined in:
- lib/puppet/pops/types/type_mismatch_describer.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.
Direct Known Subclasses
Instance Attribute Summary collapse
- #key ⇒ Object readonly private
Attributes inherited from Mismatch
Instance Method Summary collapse
- #==(o) ⇒ Object private
- #hash ⇒ Object private
-
#initialize(path, key) ⇒ KeyMismatch
constructor
private
A new instance of KeyMismatch.
Methods inherited from Mismatch
#canonical_path, #chop_path, #eql?, #format, #merge, #message, #path_string, #to_s
Constructor Details
#initialize(path, key) ⇒ KeyMismatch
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 a new instance of KeyMismatch.
168 169 170 171 |
# File 'lib/puppet/pops/types/type_mismatch_describer.rb', line 168 def initialize(path, key) super(path) @key = key end |
Instance Attribute Details
#key ⇒ Object (readonly)
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.
166 167 168 |
# File 'lib/puppet/pops/types/type_mismatch_describer.rb', line 166 def key @key end |
Instance Method Details
#==(o) ⇒ Object
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.
173 174 175 |
# File 'lib/puppet/pops/types/type_mismatch_describer.rb', line 173 def ==(o) super.==(o) && key == o.key end |
#hash ⇒ Object
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.
177 178 179 |
# File 'lib/puppet/pops/types/type_mismatch_describer.rb', line 177 def hash super.hash ^ key.hash end |