Parent

Module

Constants

DEPS
(Not documented)

Public Instance Methods

tu_deprecate(old, new) click to toggle source

(Not documented)

# File lib/test/unit/deprecate.rb, line 15
  def tu_deprecate old, new
    class_eval "def \#{old} *args, &block\ncls, clr = self.class, caller.first\nself.class.tu_deprecation_warning \#{old.inspect}, \#{new.inspect}, clr\n\#{new}(*args, &block)\nend\n"
  end
tu_deprecation_warning(old, new = nil, kaller = nil) click to toggle source

(Not documented)

# File lib/test/unit/deprecate.rb, line 4
  def tu_deprecation_warning old, new = nil, kaller = nil
    kaller ||= caller[1]
    unless DEPS[old][kaller] then
      msg = "#{self}##{old} deprecated. "
      msg += new ? "Use ##{new}" : "No replacement is provided"
      msg += ". From #{kaller}."
      warn msg
    end
    DEPS[old][kaller] = true
  end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.