1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
ruby--ruby/lib/rbconfig/obsolete.rb
akr 5f5e0b7191 * lib/rbconfig/obsolete.rb: show the location which use Config.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28911 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-08-07 22:50:05 +00:00

5 lines
198 B
Ruby

loc = caller[0]
loc = loc[/\A.*:\d+:/] if loc
loc = "#{loc} " if loc
warn "#{loc}Use RbConfig instead of obsolete and deprecated Config."
Config = RbConfig # compatibility for ruby-1.8.4 and older.