Class: Puppet::Pops::Types::UnresolvedTypeReference Private

Inherits:
Mismatch show all
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

Attributes inherited from Mismatch

#path

Instance Method Summary collapse

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

#unresolvedObject (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

#hashObject

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 message(variant, position)
  "#{variant}#{position} references an unresolved type '#{@unresolved}'"
end