Skip to content

Commit 6932d6b

Browse files
committed
[DOC] Missing documents
1 parent deaae08 commit 6932d6b

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

lib/tempfile.rb

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@
8888
# mutex.
8989
class Tempfile < DelegateClass(File)
9090

91+
# The version
9192
VERSION = "0.2.1"
9293

9394
# Creates a file in the underlying file system;
@@ -165,19 +166,19 @@ def initialize(basename="", tmpdir=nil, mode: 0, **options)
165166
super(tmpfile)
166167
end
167168

168-
def initialize_dup(other)
169+
def initialize_dup(other) # :nodoc:
169170
initialize_copy_iv(other)
170171
super(other)
171172
ObjectSpace.define_finalizer(self, Closer.new(__getobj__))
172173
end
173174

174-
def initialize_clone(other)
175+
def initialize_clone(other) # :nodoc:
175176
initialize_copy_iv(other)
176177
super(other)
177178
ObjectSpace.define_finalizer(self, Closer.new(__getobj__))
178179
end
179180

180-
private def initialize_copy_iv(other)
181+
private def initialize_copy_iv(other) # :nodoc:
181182
@unlinked = other.unlinked
182183
@mode = other.mode
183184
@opts = other.opts

0 commit comments

Comments
 (0)