diff options
author | hsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-07-23 19:44:23 +0000 |
---|---|---|
committer | hsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-07-23 19:44:23 +0000 |
commit | a7f672a17e64851af284d356791d01c76fded6e2 (patch) | |
tree | b359c8c00712147191b4946825bfbdecaffa95c3 /lib | |
parent | 31f2d1d7eba3030474fd79b48f19b3d77e2d8ded (diff) |
* lib/tempfile.rb: split executable code into sample directory.
* sample/tempfile.rb: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46920 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib')
-rw-r--r-- | lib/tempfile.rb | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/lib/tempfile.rb b/lib/tempfile.rb index 361d66491e..4fcd431ecd 100644 --- a/lib/tempfile.rb +++ b/lib/tempfile.rb @@ -381,13 +381,3 @@ def Tempfile.create(basename, *rest) tmpfile end end - -if __FILE__ == $0 -# $DEBUG = true - f = Tempfile.new("foo") - f.print("foo\n") - f.close - f.open - p f.gets # => "foo\n" - f.close! -end |