diff options
author | Nobuyoshi Nakada <[email protected]> | 2023-12-18 13:55:15 +0900 |
---|---|---|
committer | Hiroshi SHIBATA <[email protected]> | 2023-12-25 21:12:49 +0900 |
commit | 3d40f115649ab40593d35616b6133b741a854dcb (patch) | |
tree | f6741454185cdf21f032dc5aae5e5f1f6fcc5467 /lib/tempfile.rb | |
parent | edadd5b796678e8f819030f9fa37dcae4be2b282 (diff) |
[ruby/tempfile] [DOC] Missing documents
https://github.com/ruby/tempfile/commit/6932d6bc6f
Diffstat (limited to 'lib/tempfile.rb')
-rw-r--r-- | lib/tempfile.rb | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/tempfile.rb b/lib/tempfile.rb index cf6085192b..1d7b80a74d 100644 --- a/lib/tempfile.rb +++ b/lib/tempfile.rb @@ -88,6 +88,7 @@ require 'tmpdir' # mutex. class Tempfile < DelegateClass(File) + # The version VERSION = "0.2.1" # Creates a file in the underlying file system; @@ -165,19 +166,19 @@ class Tempfile < DelegateClass(File) super(tmpfile) end - def initialize_dup(other) + def initialize_dup(other) # :nodoc: initialize_copy_iv(other) super(other) ObjectSpace.define_finalizer(self, Closer.new(__getobj__)) end - def initialize_clone(other) + def initialize_clone(other) # :nodoc: initialize_copy_iv(other) super(other) ObjectSpace.define_finalizer(self, Closer.new(__getobj__)) end - private def initialize_copy_iv(other) + private def initialize_copy_iv(other) # :nodoc: @unlinked = other.unlinked @mode = other.mode @opts = other.opts |