diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-05-19 00:07:25 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-05-19 00:07:25 +0000 |
commit | d371e3583e3b1e0692f92343017b62d2628190ff (patch) | |
tree | be82924ada754f8542f394d0a3d28e0a0b02a098 /lib/weakref.rb | |
parent | 1fae66fca28167ca0e25625091c5df49405b8023 (diff) |
* lib: revert r31635-r31638 and untabify with expand(1).
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31641 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/weakref.rb')
-rw-r--r-- | lib/weakref.rb | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/weakref.rb b/lib/weakref.rb index 10ec5ad476..b3f3856db9 100644 --- a/lib/weakref.rb +++ b/lib/weakref.rb @@ -3,11 +3,11 @@ # Usage: # foo = Object.new # foo = Object.new -# p foo.to_s # original's class +# p foo.to_s # original's class # foo = WeakRef.new(foo) -# p foo.to_s # should be same class +# p foo.to_s # should be same class # ObjectSpace.garbage_collect -# p foo.to_s # should raise exception (recycled) +# p foo.to_s # should raise exception (recycled) require "delegate" require 'thread' @@ -71,10 +71,10 @@ end if __FILE__ == $0 # require 'thread' foo = Object.new - p foo.to_s # original's class + p foo.to_s # original's class foo = WeakRef.new(foo) - p foo.to_s # should be same class + p foo.to_s # should be same class ObjectSpace.garbage_collect ObjectSpace.garbage_collect - p foo.to_s # should raise exception (recycled) + p foo.to_s # should raise exception (recycled) end |