るりまサーチ

最速Rubyリファレンスマニュアル検索!
214件ヒット [201-214件を表示] (0.045秒)
トップページ > クエリ:IO[x] > クエリ:write[x] > クエリ:to_s[x]

別のキーワード

  1. rexml/document write
  2. _builtin write
  3. io write
  4. tuple write
  5. csv write_headers?

検索結果

<< < 1 2 3 >>

Pathname#ctime -> Time (28.0)

File.ctime(self.to_s) を渡したものと同じです。

...File.ctime(self.to_s) を渡したものと同じです。

//emlist[例][ruby]{
require 'pathname'

IO
.write("testfile", "test")
pathname = Pathname("testfile")
pathname.ctime # => 2019-01-14 00:39:51 +0900
sleep 1
pathname.chmod(0755)
pathname.ctime # => 2019-01-14 00:39:52 +0900
//}

@see File.ct...

File.lchmod(mode, *filename) -> Integer (24.0)

File.chmod と同様ですが、シンボリックリンクに関してリンクそのものの モードを変更します。

...生します。

//emlist[例][ruby]{
IO
.write("testfile", "test")
File.symlink("testfile", "testlink")
File.lstat("testlink").ftype # => "link"
File.lchmod(0744, "testlink")
File.stat("testlink").mode.to_s(8) # => "100644"
File.lstat("testlink").mode.to_s(8) # => "120744"
//}...
<< < 1 2 3 >>