るりまサーチ

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

別のキーワード

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

モジュール

検索結果

<< 1 2 3 ... > >>

Net::POPMail#all -> String (18218.0)

メールを受信します。

...通常 IO オブジェクトを渡します。
この場合引数として渡したオブジェクトを返します。

pop, all, mail はすべて同じ効果ですが、
all
と mail は obsolete です。


使用例:

require 'net/pop'

Net::POP3.start('pop.example.com', 110,...

Net::POPMail#all {|str| .... } -> nil (18118.0)

メールを受信します。

...通常 IO オブジェクトを渡します。
この場合引数として渡したオブジェクトを返します。

pop, all, mail はすべて同じ効果ですが、
all
と mail は obsolete です。


使用例:

require 'net/pop'

Net::POP3.start('pop.example.com', 110,...

Net::POPMail#all(io) -> object (18118.0)

メールを受信します。

...通常 IO オブジェクトを渡します。
この場合引数として渡したオブジェクトを返します。

pop, all, mail はすべて同じ効果ですが、
all
と mail は obsolete です。


使用例:

require 'net/pop'

Net::POP3.start('pop.example.com', 110,...

Gem::InstallUpdateOptions#install_update_defaults_str -> String (9201.0)

Gem コマンドの install サブコマンドに渡されるデフォルトのオプションを返します。

...Gem コマンドの install サブコマンドに渡されるデフォルトのオプションを返します。

デフォルトのオプションは以下の通りです。
--rdoc --no-force --no-test --wrappers...

Kernel.#caller(range) -> [String] | nil (6203.0)

start 段上の呼び出し元の情報を $@ の形式のバックトレース(文字列の配列)として返します。

...情報を $@
の形式のバックトレース(文字列の配列)として返します。

トップレベルでは空の配列を返します。caller の戻り値を $@ に代入することで
例外の発生位置を設定できます。

引数で指定した値が範囲外の場合は nil を...
...ブジェクトを指定します。

@see Kernel.#set_trace_func,Kernel.#raise,
Kernel.#caller_locations

//emlist[例][ruby]{
def foo
p caller(0)
p caller(1)
p caller(2)
p caller(3)
p caller(4)
end

def bar
foo
end

bar

#=> ["-:2:in `foo'", "-:10:in `bar'", "-:13:in `<main>'"]
#...
...aller の要素から [ファイル名, 行番号, メソッド名]
を取り出して返します。

//emlist[例][ruby]{
def parse_caller(at)
if /^(.+?):(\d+)(?::in `(.*)')?/ =~ at
file = $1
line = $2.to_i
method = $3
[file, line, method]
end
end

def foo
p parse_caller(call...

絞り込み条件を変える

Kernel.#caller(start = 1) -> [String] | nil (6203.0)

start 段上の呼び出し元の情報を $@ の形式のバックトレース(文字列の配列)として返します。

...情報を $@
の形式のバックトレース(文字列の配列)として返します。

トップレベルでは空の配列を返します。caller の戻り値を $@ に代入することで
例外の発生位置を設定できます。

引数で指定した値が範囲外の場合は nil を...
...ブジェクトを指定します。

@see Kernel.#set_trace_func,Kernel.#raise,
Kernel.#caller_locations

//emlist[例][ruby]{
def foo
p caller(0)
p caller(1)
p caller(2)
p caller(3)
p caller(4)
end

def bar
foo
end

bar

#=> ["-:2:in `foo'", "-:10:in `bar'", "-:13:in `<main>'"]
#...
...aller の要素から [ファイル名, 行番号, メソッド名]
を取り出して返します。

//emlist[例][ruby]{
def parse_caller(at)
if /^(.+?):(\d+)(?::in `(.*)')?/ =~ at
file = $1
line = $2.to_i
method = $3
[file, line, method]
end
end

def foo
p parse_caller(call...

Kernel.#caller(start, length) -> [String] | nil (6203.0)

start 段上の呼び出し元の情報を $@ の形式のバックトレース(文字列の配列)として返します。

...情報を $@
の形式のバックトレース(文字列の配列)として返します。

トップレベルでは空の配列を返します。caller の戻り値を $@ に代入することで
例外の発生位置を設定できます。

引数で指定した値が範囲外の場合は nil を...
...ブジェクトを指定します。

@see Kernel.#set_trace_func,Kernel.#raise,
Kernel.#caller_locations

//emlist[例][ruby]{
def foo
p caller(0)
p caller(1)
p caller(2)
p caller(3)
p caller(4)
end

def bar
foo
end

bar

#=> ["-:2:in `foo'", "-:10:in `bar'", "-:13:in `<main>'"]
#...
...aller の要素から [ファイル名, 行番号, メソッド名]
を取り出して返します。

//emlist[例][ruby]{
def parse_caller(at)
if /^(.+?):(\d+)(?::in `(.*)')?/ =~ at
file = $1
line = $2.to_i
method = $3
[file, line, method]
end
end

def foo
p parse_caller(call...

Gem::SourceIndex.installed_spec_directories -> [String] (6201.0)

gemspec ファイルがインストールされているディレクトリのリストを返します。

gemspec ファイルがインストールされているディレクトリのリストを返します。

@see Gem.#path

Gem::Specification#installation_path -> String (6201.0)

この Gem パッケージのインストール先のパスを返します。

この Gem パッケージのインストール先のパスを返します。

Gem::Specification#post_install_message -> String (6201.0)

インストール完了後に表示するメッセージを返します。

インストール完了後に表示するメッセージを返します。

絞り込み条件を変える

<< 1 2 3 ... > >>