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.
228 229 230 231 |
# File 'lib/puppet/pops/types/type_mismatch_describer.rb', line 228 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.
226 227 228 |
# File 'lib/puppet/pops/types/type_mismatch_describer.rb', line 226 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.
233 234 235 |
# File 'lib/puppet/pops/types/type_mismatch_describer.rb', line 233 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.
237 238 239 |
# File 'lib/puppet/pops/types/type_mismatch_describer.rb', line 237 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.
241 242 243 |
# File 'lib/puppet/pops/types/type_mismatch_describer.rb', line 241 def (variant, position) "#{variant}#{position} references an unresolved type '#{@unresolved}'" end |