Class: Puppet::Pops::Types::UnresolvedTypeReference Private
- Defined in:
- lib/puppet/pops/types/type_mismatch_describer.rb
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.
Instance Attribute Summary collapse
- #unresolved ⇒ Object readonly private
Attributes inherited from Mismatch
Instance Method Summary collapse
- #==(o) ⇒ Object private
- #hash ⇒ Object private
-
#initialize(path, unresolved) ⇒ UnresolvedTypeReference
constructor
private
A new instance of UnresolvedTypeReference.
- #message(variant, position) ⇒ Object private
Methods inherited from Mismatch
#canonical_path, #chop_path, #eql?, #format, #merge, #path_string, #to_s
Constructor Details
#initialize(path, unresolved) ⇒ UnresolvedTypeReference
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 UnresolvedTypeReference.
225 226 227 228 |
# File 'lib/puppet/pops/types/type_mismatch_describer.rb', line 225 def initialize(path, unresolved) super(path) @unresolved = unresolved end |
Instance Attribute Details
#unresolved ⇒ 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.
223 224 225 |
# File 'lib/puppet/pops/types/type_mismatch_describer.rb', line 223 def unresolved @unresolved 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.
230 231 232 |
# File 'lib/puppet/pops/types/type_mismatch_describer.rb', line 230 def ==(o) super.==(o) && @unresolved == o.unresolved 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.
234 235 236 |
# File 'lib/puppet/pops/types/type_mismatch_describer.rb', line 234 def hash @unresolved.hash end |
#message(variant, position) ⇒ 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.
238 239 240 |
# File 'lib/puppet/pops/types/type_mismatch_describer.rb', line 238 def (variant, position) "#{variant}#{position} references an unresolved type '#{@unresolved}'" end |