diff options
Diffstat (limited to 'sample/tempfile.rb')
-rw-r--r-- | sample/tempfile.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/sample/tempfile.rb b/sample/tempfile.rb new file mode 100644 index 0000000000..5a363614a3 --- /dev/null +++ b/sample/tempfile.rb @@ -0,0 +1,8 @@ +require 'tempfile' + +f = Tempfile.new("foo") +f.print("foo\n") +f.close +f.open +p f.gets # => "foo\n" +f.close! |