diff options
Diffstat (limited to 'jni/ruby/sample/tempfile.rb')
-rw-r--r-- | jni/ruby/sample/tempfile.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/jni/ruby/sample/tempfile.rb b/jni/ruby/sample/tempfile.rb new file mode 100644 index 0000000..5a36361 --- /dev/null +++ b/jni/ruby/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! |