るりまサーチ (Ruby 2.2.0)

最速Rubyリファレンスマニュアル検索!
12件ヒット [1-12件を表示] (0.098秒)
トップページ > バージョン:2.2.0[x] > クエリ:@[x] > クエリ:@[x] > クエリ:writable?[x]

別のキーワード

  1. _builtin writable?
  2. _builtin writable_real?
  3. _builtin world_writable?
  4. io/wait wait_writable
  5. io wait_writable

検索結果

Shell#writable?(file) -> bool (54373.0)

FileTest モジュールにある同名のクラスメソッドと同じです.

FileTest モジュールにある同名のクラスメソッドと同じです.

@param file ファイル名を表す文字列を指定します。

@see FileTest.#writable?

Shell::CommandProcessor#writable?(file) -> bool (54373.0)

FileTest モジュールにある同名のクラスメソッドと同じです.

FileTest モジュールにある同名のクラスメソッドと同じです.

@param file ファイル名を表す文字列を指定します。

@see FileTest.#writable?

Shell::Filter#writable?(file) -> bool (54373.0)

FileTest モジュールにある同名のクラスメソッドと同じです.

FileTest モジュールにある同名のクラスメソッドと同じです.

@param file ファイル名を表す文字列を指定します。

@see FileTest.#writable?

Pathname#writable? -> bool (54340.0)

FileTest.writable?(self.to_s) と同じです。

FileTest.writable?(self.to_s) と同じです。


@see FileTest.#writable?

File.writable?(path) -> bool (54337.0)

FileTest.#writable? と同じです。

FileTest.#writable? と同じです。

@param path パスを表す文字列を指定します。

絞り込み条件を変える

FileTest.#writable?(file) -> bool (54337.0)

ファイルがカレントプロセスにより書き込み可能である時に真を返します。そうでない場合、ファイルが存在しない場合、あるいはシステムコールに失敗した場合などには false を返します。

ファイルがカレントプロセスにより書き込み可能である時に真を返します。そうでない場合、ファイルが存在しない場合、あるいはシステムコールに失敗した場合などには false を返します。

@param file ファイル名を表す文字列を指定します。

//emlist[例][ruby]{
IO.write("testfile", "test")
File.chmod(0600, "testfile")
FileTest.writable?("testfile") # => true
File.chmod(0400, "testfile")
FileTest.writable?("tes...

Shell#world_writable? (18400.0)

@todo

@todo

Shell::CommandProcessor#world_writable? (18400.0)

@todo

@todo

Shell::Filter#world_writable? (18400.0)

@todo

@todo

Pathname#world_writable? -> bool (18340.0)

FileTest.world_writable?(self.to_s) と同じです。

FileTest.world_writable?(self.to_s) と同じです。


@see FileTest.#world_writable?

絞り込み条件を変える

File.world_writable?(path) -> bool (18337.0)

path が全てのユーザから書き込めるならば、そのファイルのパーミッションを表す 整数を返します。そうでない場合は nil を返します。

path が全てのユーザから書き込めるならば、そのファイルのパーミッションを表す
整数を返します。そうでない場合は nil を返します。

整数の意味はプラットフォームに依存します。

@param path パスを表す文字列か IO オブジェクトを指定します。

//emlist[例][ruby]{
m = File.world_writable?("/tmp")
"%o" % m #=> "777"
//}

FileTest.#world_writable?(path) -> bool (18337.0)

path が全てのユーザから書き込めるならば、そのファイルのパーミッションを表す 整数を返します。そうでない場合は nil を返します。

path が全てのユーザから書き込めるならば、そのファイルのパーミッションを表す
整数を返します。そうでない場合は nil を返します。

整数の意味はプラットフォームに依存します。

@param path パスを表す文字列を指定します。

m = FileTest.world_writable?("/tmp")
"%o" % m #=> "777"