1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

tempfile.rb: get rid of warnings

* lib/tempfile.rb (Tempfile#initialize): use class method to get rid
  of warnings when $VERBOSE.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43758 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2013-11-21 09:28:43 +00:00
parent 20fa0c26c9
commit 2958ecae67
2 changed files with 6 additions and 1 deletions

View file

@ -1,3 +1,8 @@
Thu Nov 21 18:28:42 2013 Nobuyoshi Nakada <nobu@ruby-lang.org>
* lib/tempfile.rb (Tempfile#initialize): use class method to get rid
of warnings when $VERBOSE.
Thu Nov 21 17:43:29 2013 Koichi Sasada <ko1@atdot.net>
* gc.c: rename initial_xxx variables to gc_params.xxx.

View file

@ -133,7 +133,7 @@ class Tempfile < DelegateClass(File)
@clean_proc = Remover.new(@data)
ObjectSpace.define_finalizer(self, @clean_proc)
create(basename, *rest) do |tmpname, n, opts|
::Dir::Tmpname.create(basename, *rest) do |tmpname, n, opts|
mode = File::RDWR|File::CREAT|File::EXCL
perm = 0600
if opts