rurema / doctree

Repository of Japanese Ruby reference manual

Home Page:https://docs.ruby-lang.org/ja/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

`Dir.chdir("~/filename")`などで`~`が展開されるか否かの記述があった方がよい。

hyuki opened this issue · comments

https://docs.ruby-lang.org/ja/latest/method/Dir/s/chdir.html

Dir.chdir("~/filename")などで~が展開されるか否かの記述があった方がよい。

Ruby 3.0.2では展開されないようだ。

Dir.chdir(File.expand_path("~/filename"))とすれば展開できる。