Rails
Ruby 2.7.0
6.1
6.0
5.2
5.1
5.0
4.2
2.5.0
2.6.0
3.0
instance method File::Stat#writable?
writable? -> bool
[
permalink
][
rdoc
][
edit
]
書き込み可能な時に真を返します。
p File::Stat.new($0).writable? #=> true