aboutsummaryrefslogtreecommitdiffstats
path: root/lib/timeout.rb
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-07-30 04:20:00 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-07-30 04:20:00 +0000
commit8c1a4a59c651bd49ba3801d25235973fd402973c (patch)
treee2d59d7870dbc9b8e83c5af528bbaa709df41cc4 /lib/timeout.rb
parent54a33b84ed87d4a832c4bd8c102262aec1e35651 (diff)
downloadruby-8c1a4a59c651bd49ba3801d25235973fd402973c.tar.gz
variable.c: Module#deprecate_constant
* variable.c (rb_const_get_0): warn deprecated constant reference. * variable.c (rb_mod_deprecate_constant): mark constants to be warned as deprecated. [Feature #11398] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51444 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/timeout.rb')
-rw-r--r--lib/timeout.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/timeout.rb b/lib/timeout.rb
index 54b93e9716..20a594898f 100644
--- a/lib/timeout.rb
+++ b/lib/timeout.rb
@@ -120,3 +120,6 @@ end
# Another name for Timeout::Error, defined for backwards compatibility with
# earlier versions of timeout.rb.
TimeoutError = Timeout::Error
+class Object
+ deprecate_constant :TimeoutError
+end