482件ヒット
[1-100件を表示]
(0.105秒)
別のキーワード
ライブラリ
- ビルトイン (231)
- erb (8)
-
minitest
/ spec (3) - mkmf (72)
- pathname (36)
- prime (72)
-
rexml
/ document (36) -
rubygems
/ dependency _ installer (12) -
rubygems
/ source _ info _ cache (12)
クラス
- Data (3)
- ERB (8)
- Enumerator (24)
-
Gem
:: DependencyInstaller (12) -
Gem
:: SourceInfoCache (12) - Hash (34)
- Module (13)
- Object (2)
- Pathname (36)
-
Prime
:: PseudoPrimeGenerator (72) - Proc (6)
-
REXML
:: Child (12) -
REXML
:: Element (24) - Refinement (4)
- String (24)
- Symbol (6)
- Thread (18)
- Time (12)
モジュール
- Enumerable (88)
- Kernel (72)
キーワード
- < (12)
-
check
_ signedness (24) - children (12)
- chunk (12)
- compact (4)
-
convertible
_ int (24) -
delete
_ prefix (8) -
delete
_ prefix! (8) -
each
_ child (24) -
each
_ element _ with _ attribute (12) -
each
_ element _ with _ text (12) -
each
_ with _ index (48) -
find
_ gems _ with _ sources (12) -
import
_ methods (4) -
infect
_ with _ assertions (1) -
keep
_ if (24) -
max
_ by (48) -
must
_ be _ within _ delta (1) -
must
_ be _ within _ epsilon (1) -
replace
_ with (12) -
report
_ on _ exception (9) -
report
_ on _ exception= (9) - result (8)
-
ruby2
_ keywords (6) -
search
_ with _ source (12) - select! (10)
-
start
_ with? (14) - strftime (12)
-
with
_ index (48) -
with
_ object (24) -
with
_ werror (24)
検索結果
先頭5件
- Data
# with(**kwargs) -> Data - Object
# must _ be _ within _ epsilon(actual , epsilon = 0 . 001) -> true - Prime
:: PseudoPrimeGenerator # each _ with _ index {|prime , index| . . . } -> self - Prime
:: PseudoPrimeGenerator # with _ index {|prime , index| . . . } -> self - Prime
:: PseudoPrimeGenerator # with _ object(obj) {|prime , obj| . . . } -> object
-
Data
# with(**kwargs) -> Data (18132.0) -
self をコピーしたオブジェクトを返します。
...引数に対応するメンバには引数の値が設定されます。存在しないメンバを指定した場合はエラーとなります。
@param kwargs コピーされたオブジェクトに設定されるメンバの値を指定します。
@raise ArgumentError 存在しないメンバ......", 5) # => #<data Dog name="Fred", age=5>
dog2 = dog1.with(age: 6) # => #<data Dog name="Fred", age=6>
p dog1 # => #<data Dog name="Fred", age=5>
dog3 = dog1.with(type: "Terrier") # => ArgumentError (unknown keyword: :type)
# メンバのオブジェクトはコピーされ......ず、同じオブジェクトを参照する。
dog1.name.upcase!
p dog1 # => #<data Dog name="FRED", age=5>
p dog2 # => #<data Dog name="FRED", age=6>
//}
[注意] 本メソッドの記述は Data のサブクラスのインスタンスに対して呼び
出す事を想定しています。Data.d... -
Object
# must _ be _ within _ epsilon(actual , epsilon = 0 . 001) -> true (12301.0) -
自身と実際の値の相対誤差が許容範囲内である場合、検査にパスしたことになります。
...自身と実際の値の相対誤差が許容範囲内である場合、検査にパスしたことになります。
@param actual 実際の値を指定します。
@param epsilon 許容する相対誤差を指定します。
@raise MiniTest::Assertion 検査に失敗した場合に発生しま... -
Prime
:: PseudoPrimeGenerator # each _ with _ index {|prime , index| . . . } -> self (12223.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... -
Prime
:: PseudoPrimeGenerator # with _ index {|prime , index| . . . } -> self (12223.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... -
Prime
:: PseudoPrimeGenerator # with _ object(obj) {|prime , obj| . . . } -> object (12209.0) -
与えられた任意のオブジェクトと要素をブロックに渡して評価します。
...@param obj 任意のオブジェクトを指定します。
@return 最初に与えられたオブジェクトを返します。
@return ブロックを与えられた場合は obj を返します。ブロックを与えられなかった場合は Enumerator を返します。
@see Enumerator#with_... -
REXML
:: Child # replace _ with(child) -> self (12202.0) -
親ノードの子ノード列上において、 self を child に置き換えます。
...親ノードの子ノード列上において、 self を child に置き換えます。
@param child 置き換え後のノード
@see REXML::Parent#replace_child... -
Prime
:: PseudoPrimeGenerator # each _ with _ index -> Enumerator (12123.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... -
Prime
:: PseudoPrimeGenerator # with _ index -> Enumerator (12123.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... -
Prime
:: PseudoPrimeGenerator # with _ object(obj) -> Enumerator (12109.0) -
与えられた任意のオブジェクトと要素をブロックに渡して評価します。
...@param obj 任意のオブジェクトを指定します。
@return 最初に与えられたオブジェクトを返します。
@return ブロックを与えられた場合は obj を返します。ブロックを与えられなかった場合は Enumerator を返します。
@see Enumerator#with_... -
Gem
:: DependencyInstaller # find _ gems _ with _ sources(dep) -> Array (9202.0) -
与えられた条件にマッチする Gem::Specification のインスタンスと URI のペアのリストを 返します。
...::Specification のインスタンスと URI のペアのリストを
返します。
Gem はローカル (Dir.pwd) とリモート (Gem.sources) の両方から検索します。
結果は、バージョンの新しい順が先にきます。また、ローカルの Gem も先にきます。
@par......am dep Gem::Dependency のインスタンスを指定します。...