class Puppet::Pops::Types::ExpectedActualMismatch
@api private
Attributes
actual[R]
expected[R]
Public Class Methods
new(path, expected, actual)
click to toggle source
Calls superclass method
Puppet::Pops::Types::Mismatch::new
# File lib/puppet/pops/types/type_mismatch_describer.rb 247 def initialize(path, expected, actual) 248 super(path) 249 @expected = (expected.is_a?(Array) ? PVariantType.maybe_create(expected) : expected).normalize 250 @actual = actual.normalize 251 end
Public Instance Methods
==(o)
click to toggle source
Calls superclass method
Puppet::Pops::Types::Mismatch#==
# File lib/puppet/pops/types/type_mismatch_describer.rb 253 def ==(o) 254 super.==(o) && expected == o.expected && actual == o.actual 255 end
hash()
click to toggle source
# File lib/puppet/pops/types/type_mismatch_describer.rb 257 def hash 258 [canonical_path, expected, actual].hash 259 end