class Ecoportal::API::Common::Content::ArrayModel::TypeMismatchedComparison

Public Class Methods

new(this: nil, that: msg = "Trying to compare objects with different behavior.") click to toggle source
Calls superclass method
# File lib/ecoportal/api/common/content/array_model.rb, line 10
def initialize (this: nil, that: msg = "Trying to compare objects with different behavior.")
  if this
    msg += " From object with 'order_matters: #{this.order_matters?}' and 'uniq: #{this.uniq?}'."
  end
  if that
    msg += " To object where 'order_matters: #{that.order_matters?}' and 'uniq: #{that.uniq?}'."
  end
  super(msg)
end