lib/hashie/extensions/key_conflict_warning.rb
def disable_warnings(*method_keys)
        raise CannotDisableMashWarnings if self == Hashie::Mash
        if method_keys.any?
          disabled_warnings.concat(method_keys).tap(&:flatten!).uniq!
        else
          disabled_warnings.clear
        end

        @disable_warnings = true
      end
# Disable the logging of warnings based on keys conflicting keys/methods
#
# @api semipublic
# @return [void]
Disable the logging of warnings based on keys conflicting keys/methods
Disable the logging of warnings based on keys conflicting keys / methods
def disable_warnings(*method_keys)
        raise CannotDisableMashWarnings if self == Hashie::Mash
        if method_keys.any?
          disabled_warnings.concat(method_keys).tap(&:flatten!).uniq!
        else
          disabled_warnings.clear
        end
        @disable_warnings = true
      end
def disable_warnings ( * method_keys ) raise CannotDisableMashWarnings if self == Hashie :: Mash if method_keys . any? disabled_warnings . concat ( method_keys ) . tap ( & :flatten! ) . uniq! else disabled_warnings . clear end @disable_warnings = true end
Disable the logging of warnings based on keys conflicting keys/methods
Disable the logging of warnings based on keys conflicting keys / methods
None
void
method_keys
api
None