216件ヒット
[1-100件を表示]
(0.049秒)
別のキーワード
ライブラリ
- ビルトイン (132)
- etc (12)
- rubygems (48)
-
webrick
/ httputils (12) -
win32
/ resolv (12)
クラス
-
Win32
:: Resolv (12)
モジュール
- Etc (12)
- FileTest (12)
- Gem (48)
- Kernel (120)
-
WEBrick
:: HTTPUtils (12)
キーワード
-
caller
_ locations (24) -
clear
_ paths (12) - confstr (12)
-
escape
_ path (12) - exec (24)
-
get
_ hosts _ path (12) -
set
_ paths (12) -
source
_ index (12) - spawn (48)
- system (24)
-
world
_ readable? (12)
検索結果
先頭5件
-
Gem
. # path -> Array (21102.0) -
Gem を検索するパスの配列を返します。
...
Gem を検索するパスの配列を返します。... -
Win32
:: Resolv . # get _ hosts _ path -> String | nil (12208.0) -
hosts ファイルのパスを返します。ファイルが存在しない場合は nil を返します。
...hosts ファイルのパスを返します。ファイルが存在しない場合は nil を返します。
例:
require "win32/resolv"
p Win32::Resolv.get_hosts_path #=> "C:\Windows\System32\drivers\etc\hosts"... -
Gem
. # clear _ paths -> nil (9123.0) -
Gem.#dir, Gem.#path の値をリセットします。
...
Gem.#dir, Gem.#path の値をリセットします。
次に Gem.#dir, Gem.#path が呼ばれた時は、値を最初から計算します。
このメソッドは主にユニットテストの独立性を提供するために使用します。... -
Gem
. # set _ paths (9107.0) -
Gem を検索するパスをセットします。
...
Gem を検索するパスをセットします。
@see Gem.#path... -
WEBrick
:: HTTPUtils . # escape _ path(str) -> String (6202.0) -
与えられた文字列を数値参照文字列に変換します。
...用して変換します。
num = '0123456789'
lowalpha = 'abcdefghijklmnopqrstuvwxyz'
upalpha = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'
mark = '-_.!~*\'()'
unreserved = num + lowalpha + upalpha + mark
/[^#{Regexp.escape(unreserved + ":@&=+$,")}]/n
@param str 文字列を指定します... -
Gem
. # source _ index -> Gem :: SourceIndex (3117.0) -
Gem.#path にある Gem::Specification のキャッシュを返します。 インストールされている Gem::Specification のインデックスを返します
...
Gem.#path にある Gem::Specification のキャッシュを返します。
インストールされている Gem::Specification のインデックスを返します
@see Gem::SourceIndex, Gem::Specification... -
FileTest
. # world _ readable?(path) -> Integer | nil (224.0) -
path が全てのユーザから読めるならばそのファイルのパーミッションを表す 整数を返します。そうでない場合は nil を返します。
...
path が全てのユーザから読めるならばそのファイルのパーミッションを表す
整数を返します。そうでない場合は nil を返します。
整数の意味はプラットフォームに依存します。
@param path パスを表す文字列を指定します。... -
Etc
. # confstr(name) -> String | nil (107.0) -
confstr(3) で取得したシステム設定変数の値を返します。
...します。
(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.18"
//}... -
Kernel
. # caller _ locations(range) -> [Thread :: Backtrace :: Location] | nil (107.0) -
現在のフレームを Thread::Backtrace::Location の配列で返します。引 数で指定した値が範囲外の場合は nil を返します。
...ます。
@param length 取得するフレームの個数を指定します。
@param range 取得したいフレームの範囲を示す Range オブジェクトを指定します。
//emlist[例][ruby]{
def test1(start, length)
locations = caller_locations(start, length)
p locations
p lo......cations.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, nil)
# => ["/Users/user/test.rb:9:in `test2'", "/Users/user/test.rb:13:in `test3'", "/Users/user/test.rb:17...