るりまサーチ

最速Rubyリファレンスマニュアル検索!
11件ヒット [1-11件を表示] (0.066秒)
トップページ > クエリ:String#tr[x] > クエリ:pretty[x] > クラス:Tempfile[x]

別のキーワード

  1. << rexml::attribute#name
  2. add rexml::attribute#name
  3. handle_interrupt thread#raise
  4. service drb::extserv#stop_service
  5. inspect? irb::context#inspect_mode

ライブラリ

検索結果

Tempfile#path -> String | nil (202.0)

テンポラリファイルのパス名を返します。

...テンポラリファイルのパス名を返します。

Tempfile
#close! を実行後だった場合にはnilを返します。

require "tempfile"
tf = Tempfile.new("hoo")
p tf.path # => "/tmp/hoo.10596.0"
tf.close!
p tf.path # => nil...