るりまサーチ

最速Rubyリファレンスマニュアル検索!
1653件ヒット [201-300件を表示] (0.154秒)
トップページ > クエリ:i[x] > クエリ:A[x] > クエリ:with[x]

別のキーワード

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

ライブラリ

モジュール

キーワード

検索結果

<< < 1 2 3 4 5 ... > >>

String#start_with?(*strs) -> bool (18325.0)

self の先頭が strs のいずれかであるとき true を返します。

...れかであるとき true を返します。

@param strs パターンを表す文字列 (のリスト)

//emlist[例][ruby]{
"string".start_with?("str") # => true
"string".start_with?("ing") # => false
"string".start_with?("ing", "str") # => true
//}

@see String#end_with?...

Prime::PseudoPrimeGenerator#with_index -> Enumerator (18316.0)

与えられたブロックに対して、素数を0起点の連番を渡して評価します。

...を返します。 ブロックを与えられなかった場合は Enumerator を返します。

//emlist[例][ruby]{
require 'prime'
Prime::EratosthenesGenerator.new(10).each_with_index do |prime, index|
p [prime, index]
end
# [2, 0]
# [3, 1]
# [5, 2]
# [7, 3]
//}

@see Enumerator#with_index...

Matrix#each_with_index(which = :all) -> Enumerator (18308.0)

行列の各要素をその位置とともに引数としてブロックを呼び出します。

...

which で処理する要素の範囲を指定することができます。
Matrix#each と同じなのでそちらを参照してください。

ブロックを省略した場合、 Enumerator を返します。

//emlist[例][ruby]{
require 'matrix'
Matrix[ [1,2], [3,4] ].each_with_index do...
...|e, row, col|
puts "#{e} at #{row}, #{col}"
end
# => 1 at 0, 0
# => 2 at 0, 1
# => 3 at 1, 0
# => 4 at 1, 1
//}

@param which どの要素に対してブロックを呼び出すのかを Symbol で指定します
@see Matrix#each...

Matrix#each_with_index(which = :all) {|e, row, col| ... } -> self (18308.0)

行列の各要素をその位置とともに引数としてブロックを呼び出します。

...

which で処理する要素の範囲を指定することができます。
Matrix#each と同じなのでそちらを参照してください。

ブロックを省略した場合、 Enumerator を返します。

//emlist[例][ruby]{
require 'matrix'
Matrix[ [1,2], [3,4] ].each_with_index do...
...|e, row, col|
puts "#{e} at #{row}, #{col}"
end
# => 1 at 0, 0
# => 2 at 0, 1
# => 3 at 1, 0
# => 4 at 1, 1
//}

@param which どの要素に対してブロックを呼び出すのかを Symbol で指定します
@see Matrix#each...

Prime::PseudoPrimeGenerator#with_object(obj) -> Enumerator (18308.0)

与えられた任意のオブジェクトと要素をブロックに渡して評価します。

...@param obj 任意のオブジェクトを指定します。
@return 最初に与えられたオブジェクトを返します。
@return ブロックを与えられた場合は obj を返します。ブロックを与えられなかった場合は Enumerator を返します。

@see Enumerator#with_...

絞り込み条件を変える

Vector#angle_with(v) -> Float (18307.0)

v と self がなす角度を返します。

...mlist[例][ruby]{
require 'matrix'
Vector[1, 0].angle_with(Vector[0, 1]) # => Math::PI/2
//}

@param v このベクトルと self とがなす角度を計算します
@raise ZeroVectorError self もしくは v のどちらかが零ベクトルである場合に
発生します
@raise Exceptio...
...nForMatrix::ErrDimensionMismatch v と self の
ベクトルの次元が異なる場合に発生します。...

Gem::DependencyInstaller#find_gems_with_sources(dep) -> Array (18301.0)

与えられた条件にマッチする Gem::Specification のインスタンスと URI のペアのリストを 返します。

...pecification のインスタンスと URI のペアのリストを
返します。

Gem はローカル (Dir.pwd) とリモート (Gem.sources) の両方から検索します。
結果は、バージョンの新しい順が先にきます。また、ローカルの Gem も先にきます。

@param...

Module#infect_with_assertions(positive_prefix, negative_prefix, skip_regexp, map = {}) -> () (18301.0)

BDD 風にテストを書くために使用するメソッド群を定義します。

...す。

@param positive_prefix assert の代わりのプレフィックスを指定します。

@param negative_prefix refute の代わりのプレフィックスを指定します。

@param skip_regexp この正規表現にマッチしたメソッドは定義しません。

@param map メソッ...

REXML::Child#replace_with(child) -> self (18301.0)

親ノードの子ノード列上において、 self を child に置き換えます。

...親ノードの子ノード列上において、 self を child に置き換えます。

@param child 置き換え後のノード
@see REXML::Parent#replace_child...

Rake::TaskManager#enhance_with_matching_rule(task_name, level = 0) -> Rake::Task | nil (18301.0)

与えられたタスク名にマッチしたルールが存在する場合は、そのタスクに見つかったルールの 事前タスクとアクションを追加して返します。

...ルの
事前タスクとアクションを追加して返します。

@param task_name タスクの名前を指定します。

@param level 現在のルール解決のネストの深さを指定します。

@raise RuntimeError ルールの解決時にオーバーフローした場合に発生し...

絞り込み条件を変える

Prime::PseudoPrimeGenerator#with_index {|prime, index| ... } -> self (18216.0)

与えられたブロックに対して、素数を0起点の連番を渡して評価します。

...を返します。 ブロックを与えられなかった場合は Enumerator を返します。

//emlist[例][ruby]{
require 'prime'
Prime::EratosthenesGenerator.new(10).each_with_index do |prime, index|
p [prime, index]
end
# [2, 0]
# [3, 1]
# [5, 2]
# [7, 3]
//}

@see Enumerator#with_index...
<< < 1 2 3 4 5 ... > >>