module Hashie::Extensions::Mash::SafeAssignment

def []=(*args)

def []=(*args)
  custom_writer(*args)
end

def custom_writer(key, *args) #:nodoc:

:nodoc:
def custom_writer(key, *args) #:nodoc:
  if !key?(key) && respond_to?(key, true)
    raise ArgumentError, "The property #{key} clashes with an existing method."
  end
  super
end