Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Initial commit

  • Loading branch information...
commit 72838eb1456af1fc3b7ada2ebbb13a48aad4e112 0 parents
@ak-mochi ak-mochi authored
22 .gitignore
@@ -0,0 +1,22 @@
+# Object files
+*.o
+
+# Libraries
+*.lib
+*.a
+
+# Shared objects (inc. Windows DLLs)
+*.dll
+*.so
+*.so.*
+*.dylib
+
+# Executables
+*.exe
+*.out
+*.app
+
+.*.swp
+/tmp
+
+*~
2  README.md
@@ -0,0 +1,2 @@
+mruby-tempfile
+==============
4 mrbgem.rake
@@ -0,0 +1,4 @@
+MRuby::Gem::Specification.new('mruby-tempfile') do |spec|
+ spec.license = 'MIT'
+ spec.authors = 'mruby developers'
+end
31 mrblib/tempfile.rb
@@ -0,0 +1,31 @@
+class Tempfile < File
+ def close(real=false)
+
+ end
+
+ def close!
+
+ end
+
+ def delete
+
+ end
+
+ alias :unlink :delete
+
+ def length
+
+ end
+
+ alias :size :length
+
+ def open
+
+ end
+
+ def path
+
+ end
+
+end
+
0  test/tempfile.rb
No changes.
Please sign in to comment.
Something went wrong with that request. Please try again.