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.



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

#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.



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

#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.



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