るりまサーチ

最速Rubyリファレンスマニュアル検索!
348件ヒット [101-200件を表示] (0.062秒)

別のキーワード

  1. _builtin path
  2. pathname to_path
  3. _builtin absolute_path
  4. _builtin to_path
  5. csv path

ライブラリ

クラス

モジュール

検索結果

<< < 1 2 3 4 > >>

FileTest.#world_readable?(path) -> Integer | nil (124.0)

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

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

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

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

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

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

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

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

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

FileUtils.#remove_dir(path, force = false) -> () (124.0)

ディレクトリ path を削除します。

...ディレクトリ path を削除します。

@param path 削除するディレクトリ。

@param force 真のときは削除中に発生した StandardError を無視します。...

FileUtils.#remove_file(path, force = false) -> () (124.0)

ファイル path を削除します。

...ファイル path を削除します。

@param path 削除するファイル。

@param force 真のときは削除中に発生した StandardError を無視します。...

Gem.#source_index -> Gem::SourceIndex (17.0)

Gem.#path にある Gem::Specification のキャッシュを返します。 インストールされている Gem::Specification のインデックスを返します

...Gem.#path にある Gem::Specification のキャッシュを返します。
インストールされている Gem::Specification のインデックスを返します

@see Gem::SourceIndex, Gem::Specification...

絞り込み条件を変える

Etc.#confstr(name) -> String | nil (7.0)

confstr(3) で取得したシステム設定変数の値を返します。

...nil を返します。
(confstr(3) が -1 を返し、errno が設定されていない場合)

//emlist[][ruby]{
require "etc"
Etc.confstr(Etc::CS_PATH) # => "/bin:/usr/bin"

# GNU/Linux
Etc.confstr(Etc::CS_GNU_LIBC_VERSION) # => "glibc 2.18"
Etc.confstr(Etc::CS_GNU_LIBPTHREAD_VERSION) # => "NPTL 2...

Kernel.#caller_locations(range) -> [Thread::Backtrace::Location] | nil (7.0)

現在のフレームを Thread::Backtrace::Location の配列で返します。引 数で指定した値が範囲外の場合は nil を返します。

...st[例][ruby]{
def test1(start, length)
locations = caller_locations(start, length)
p locations
p locations.map(&:lineno)
p locations.map(&:path)
end

def test2(start, length)
test1(start, length)
end

def test3(start, length)
test2(start, length)
end

caller_locations # => []
test3(1, n...

Kernel.#caller_locations(start = 1, length = nil) -> [Thread::Backtrace::Location] | nil (7.0)

現在のフレームを Thread::Backtrace::Location の配列で返します。引 数で指定した値が範囲外の場合は nil を返します。

...st[例][ruby]{
def test1(start, length)
locations = caller_locations(start, length)
p locations
p locations.map(&:lineno)
p locations.map(&:path)
end

def test2(start, length)
test1(start, length)
end

def test3(start, length)
test2(start, length)
end

caller_locations # => []
test3(1, n...

Kernel.#exec(env, program, *args, options={}) -> () (7.0)

引数で指定されたコマンドを実行します。

...り、第2要素が「みせかけ」のプロ
グラム名になります。
また、第1要素はフルパスで指定しなくても環境変数 PATH から探します。

@param program 文字列か2要素の配列を指定します。
@param args 渡される引数です。0 個以上の文...
<< < 1 2 3 4 > >>