# File lib/deprecated.rb, line 109
  def self.set_action(type=nil, &block)
    @action = if block
                block
              else
                case type
                when :warn
                  proc { |*args| warn build_message(*args) }
                when :fail
                  proc { |*args| fail build_message(*args) }
                when :raise
                  proc { |*args| raise DeprecatedError, build_message(*args) }
                else
                  raise ArgumentError, "you must provide a symbol or a block to set_action()."
                end
              end
  end