るりまサーチ

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

別のキーワード

  1. openssl g
  2. openssl g=
  3. dsa g
  4. dsa g=
  5. dh g

ライブラリ

クラス

モジュール

キーワード

検索結果

<< 1 2 3 > >>

Gem.#path -> Array (21102.0)

Gem を検索するパスの配列を返します。

...
G
em を検索するパスの配列を返します。...

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 の値をリセットします。

...
G
em.#dir, Gem.#path の値をリセットします。

次に Gem.#dir, Gem.#path が呼ばれた時は、値を最初から計算します。
このメソッドは主にユニットテストの独立性を提供するために使用します。...

Gem.#set_paths (9107.0)

Gem を検索するパスをセットします。

...
G
em を検索するパスをセットします。

@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 のインデックスを返します

...
G
em.#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...
<< 1 2 3 > >>