class Hashie::Extensions::KeyConflictWarning::CannotDisableMashWarnings

@example Explain why base Mash warnings cannot be disabled

require 'hashie/mash'
error = Hashie::Extensions::KeyConflictWarning::CannotDisableMashWarnings.new
error.message.include?('please subclass the Mash') # => true

Public Class Methods

new() click to toggle source

@example Construct the warning configuration error

require 'hashie/mash'
error = Hashie::Extensions::KeyConflictWarning::CannotDisableMashWarnings.new
error.message # => 'you cannot disable warnings on the base Mash class; please subclass the Mash and disable it in the subclass'
Calls superclass method
# File lib/hashie/extensions/key_conflict_warning.rb, line 20
def initialize
  super(
    'you cannot disable warnings on the base Mash class; ' \
    'please subclass the Mash and disable it in the subclass'
  )
end