module Clamp
module Messages
def messages=(new_messages)
messages.merge!(new_messages)
end
def message(key, options = {})
format(messages.fetch(key), options)
end
def clear_messages!
init_default_messages
end
private
DEFAULTS = {
:too_many_arguments => "too many arguments",
:option_required => "option '%