lib/testable/deprecator.rb
# This is used to indicate that certain functionality within Testable
# has been deprecated and the previous functionality will disappear.
This is used to indicate that certain functionality within Testable
has been deprecated and the previous functionality will disappear.
This is used to indicate that certain functionality within Testable has been deprecated and the previous functionality will disappear .
def deprecate(current, upcoming = nil, known_version = nil)
        if upcoming
          warn(
            "#{current} is being deprecated and should no longer be used. \
            Use #{upcoming} instead."
          )
        else
          warn("#{current} is being deprecated and should no longer be used.")
        end
        warn(
          "#{current} will be removed in Testable #{known_version}."
        ) if known_version
      end
def deprecate ( current , upcoming = nil , known_version = nil ) if upcoming warn ( "#{current} is being deprecated and should no longer be used. \
            Use #{upcoming} instead." ) else warn ( "#{current} is being deprecated and should no longer be used." ) end warn ( "#{current} will be removed in Testable #{known_version}." ) if known_version end
This is used to indicate that certain functionality within Testable
has been deprecated and the previous functionality will disappear.
This is used to indicate that certain functionality within Testable has been deprecated and the previous functionality will disappear .
current
<not_specific>
upcoming
<not_specific>
known_version
<not_specific>