348件ヒット
[101-200件を表示]
(0.062秒)
ライブラリ
- ビルトイン (204)
- etc (12)
- fileutils (60)
- rubygems (48)
-
webrick
/ httputils (12) -
win32
/ resolv (12)
クラス
-
Win32
:: Resolv (12)
キーワード
-
caller
_ locations (24) -
clear
_ paths (12) - confstr (12)
-
escape
_ path (12) - exec (48)
-
get
_ hosts _ path (12) - mkpath (12)
-
remove
_ dir (12) -
remove
_ entry (12) -
remove
_ entry _ secure (12) -
remove
_ file (12) -
require
_ relative (12) -
set
_ paths (12) -
source
_ index (12) - spawn (48)
- system (48)
-
world
_ readable? (12) -
world
_ writable? (12)
検索結果
先頭5件
-
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 個以上の文...