るりまサーチ (Ruby 2.2.0)

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

別のキーワード

  1. string []=
  2. string []
  3. string slice!
  4. string slice
  5. string gsub

ライブラリ

モジュール

検索結果

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

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

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

@param name Etc モジュールの CS_ で始まる定数のいずれかを指定します。

引数 name に対応する設定が行われていない状態の場合は 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) # => "...