# File lib/deprecated.rb, line 125
  def Deprecated.set_action(action, message="%s is deprecated.")
    if action.kind_of? Proc
      @@action = action
      return
    end
    
    case action
    when :warn
      @@action = proc do |msg|
        warn(message % msg)
      end
    when :die
      @@action = proc do |msg|
        warn(message % msg)
        exit(-1)
      end
    when :throw
      @@action = proc do |msg| 
        raise DeprecatedError.new(message % msg)
      end
    end
  end