るりまサーチ

最速Rubyリファレンスマニュアル検索!
1057件ヒット [1-100件を表示] (0.124秒)
トップページ > クエリ:i[x] > クエリ:h[x] > クエリ:map[x]

別のキーワード

  1. _builtin to_i
  2. fiddle to_i
  3. matrix elements_to_i
  4. csv to_i
  5. matrix i

ライブラリ

モジュール

検索結果

<< 1 2 3 ... > >>

Matrix#map(which = :all) -> Enumerator (18320.0)

行列の各要素に対してブロックの適用を繰り返した結果を、要素として持つ行列を生成します。

...ます。

@param which which に以下の Symbol を指定することで、
引数として使われる要素を限定できます。
デフォルトは、:all (全ての要素)です。
指定できる Symbol の詳細は、 Matrix#each の項目を参...
...照して下さい。

//emlist[例][ruby]{
require 'matrix'

m = Matrix[[1, 2], [3, 4]]
p m.map { |x| x + 100 } # => Matrix[[101, 102], [103, 104]]
p m.map(:diagonal) { |x| x * 10 } # => Matrix[[10, 2], [3, 40]]
//}

@see Matrix#each, Matrix#map!...

Matrix#map(which = :all) {|x| ... } -> Matrix (18320.0)

行列の各要素に対してブロックの適用を繰り返した結果を、要素として持つ行列を生成します。

...ます。

@param which which に以下の Symbol を指定することで、
引数として使われる要素を限定できます。
デフォルトは、:all (全ての要素)です。
指定できる Symbol の詳細は、 Matrix#each の項目を参...
...照して下さい。

//emlist[例][ruby]{
require 'matrix'

m = Matrix[[1, 2], [3, 4]]
p m.map { |x| x + 100 } # => Matrix[[101, 102], [103, 104]]
p m.map(:diagonal) { |x| x * 10 } # => Matrix[[10, 2], [3, 40]]
//}

@see Matrix#each, Matrix#map!...

String#pathmap_partial(n) -> String (18300.0)

自身から与えられた階層分パスを抜粋します。

自身から与えられた階層分パスを抜粋します。

与えられた数値が正である場合は左から、負である場合は右から抜粋します。

Net::IMAP#uid_thread(algorithm, search_keys, charset) -> [Net::IMAP::ThreadMember] (15400.0)

THREADコマンドを送り、メールボックスを検索した結果を スレッド形式の木構造で返します。

...THREADコマンドを送り、メールボックスを検索した結果を
スレッド形式の木構造で返します。

ほぼ Net::IMAP#thread と同じですが、返ってくるオブジェクトの
Net::IMAP::ThreadMember#seqno の内容が message sequence number
ではなく UID とな...
...ります。

@param algorithm スレッド構造構築アルゴリズム名(文字列)
@param search_key 検索条件(文字列配列)
@param charset 検索条件の解釈に用いるCHARSET名(文字列)
@see Net::IMAP::ThreadMember, Net::IMAP#thread...

Net::IMAP.add_authenticator(auth_type, authenticator) -> () (15400.0)

Net::IMAP#authenticate で使う 認証用クラスを設定します。

...:IMAP#authenticate で使う
認証用クラスを設定します。

i
map ライブラリに新たな認証方式を追加するために用います。

通常は使う必要はないでしょう。もしこれを用いて
認証方式を追加する場合は net/imap.rb の
Net::IMAP::LoginAuthe...
...nticator などを参考にしてください。

@param auth_type 認証の種類(文字列)
@param authenticator 認証クラス(Class オブジェクト)...

絞り込み条件を変える

Rake::FileList#pathmap(spec = nil) -> Rake::FileList (15400.0)

各要素に String#pathmap を適用した新しい Rake::FileList を返します。

...各要素に String#pathmap を適用した新しい Rake::FileList を返します。

//emlist[][ruby]{
# Rakefile での記載例とする

task default: :test_rake_app
task :test_rake_app do
file_list = FileList.new("test1.rb", "test2.rb", "test3.rb")
file_list.pathmap("%n") # => ["test1",...
..."test2", "test3"]
end
//}

@see String#pathmap...

Psych::Handler#start_mapping(anchor, tag, implicit, style) -> () (15342.0)

mapping の開始を見付けたときに呼び出されます。

...mapping の開始を見付けたときに呼び出されます。

anchor には map に関連付けられた anchor の名前が文字列で渡されます。
anchor がない場合には nil が渡されます。

tag には map に関連付けられた tag の名前が文字列で渡されます...
...合には nil が渡されます。

i
mplicit には map implicit に開始されたかどうかが
真偽値で渡されます。

style には sequence の style が整数値で渡されます。以下のいずれか
です。
* Psych::Nodes::Mapping::BLOCK
* Psych::Nodes::Mapping::FLOW...
...ride してください。

@param anchor 関連付けられた anchor の名前
@param tag タグ名
@param implicit mapping が implicit に開始されかどうか
@param style mapping のスタイル

=== 例

以下の YAML ドキュメントを例として考えます。

---
k: !!map { he...

Shell::CommandProcessor.alias_map -> Hash (15301.0)

Shell::CommandProcessor.alias_command で定義したエイリアスの一覧を返します。

...Shell::CommandProcessor.alias_command で定義したエイリアスの一覧を返します。...

Encoding.locale_charmap -> String | nil (15300.0)

ロケールエンコーディングを決定するために用いる、locale charmap 名を返します。nl_langinfo 等がない環境では nil を、miniruby では ASCII_8BIT を返します。

...charmap 名を返します。nl_langinfo 等がない環境では nil を、miniruby では ASCII_8BIT を返します。

//emlist[Debian GNU/Linux + LANG=C][ruby]{
Encoding.locale_charmap #=> "ANSI_X3.4-1968"
//}

//emlist[LANG=ja_JP.EUC-JP][ruby]{
Encoding.locale_charmap #=> "EUC-JP"
//}

//emlis...
...t[SunOS 5 + LANG=C][ruby]{
Encoding.locale_charmap #=> "646"
//}

//emlist[SunOS 5 + LANG=ja][ruby]{
Encoding.locale_charmap #=> "eucJP"
//}

@see charmap(5)...

Net::IMAP#authenticate(auth_type, user, password) -> Net::IMAP::TaggedResponse (15300.0)

AUTHENTICATE コマンドを送り、クライアントを認証します。

...AUTHENTICATE コマンドを送り、クライアントを認証します。

auth_type で利用する認証方式を文字列で指定します。


例:
i
map.authenticate('LOGIN', user, password)

auth_type としては以下がサポートされています。
* "LOGIN"
* "PLAIN"
* "CRA...
...M-MD5"
* "DIGEST-MD5"

@param auth_type 認証方式を表す文字列
@param user ユーザ名文字列
@param password パスワード文字列
@see Net::IMAP#login...

絞り込み条件を変える

Net::IMAP#client_thread -> Thread (15300.0)

このメソッドは obsolete です。使わないでください。

このメソッドは obsolete です。使わないでください。
<< 1 2 3 ... > >>