937件ヒット
[1-100件を表示]
(0.176秒)
ライブラリ
- ビルトイン (510)
- drb (12)
- erb (16)
- matrix (60)
-
minitest
/ spec (3) - mkmf (108)
- pathname (36)
- prime (72)
- rake (36)
-
rexml
/ document (36) -
rubygems
/ dependency _ installer (12) -
rubygems
/ source _ info _ cache (12) - win32ole (24)
クラス
-
DRb
:: DRbObject (12) - Data (3)
- ERB (16)
- Enumerator (48)
-
Enumerator
:: Lazy (12) -
Gem
:: DependencyInstaller (12) -
Gem
:: SourceInfoCache (12) - Hash (128)
- Matrix (48)
- Method (68)
- Module (25)
- Object (2)
- Pathname (36)
-
Prime
:: PseudoPrimeGenerator (72) -
REXML
:: Child (12) -
REXML
:: Element (24) -
Rake
:: TaskArguments (12) - Refinement (4)
- String (56)
- Symbol (6)
- Thread (18)
- Time (12)
- Vector (12)
-
WIN32OLE
_ EVENT (24)
モジュール
- Enumerable (131)
- FileUtils (12)
- Kernel (108)
-
Rake
:: TaskManager (12)
キーワード
- < (12)
- === (8)
- [] (12)
-
_ _ drbref (12) -
angle
_ with (12) - call (24)
-
check
_ signedness (24) - children (12)
- chunk (12)
- compact (4)
-
convertible
_ int (24) -
delete
_ prefix (8) -
delete
_ prefix! (8) -
delete
_ suffix (8) -
delete
_ suffix! (8) -
dir
_ config (12) - each (24)
-
each
_ child (24) -
each
_ element _ with _ attribute (12) -
each
_ element _ with _ text (12) -
each
_ with _ index (72) -
each
_ with _ object (24) -
end
_ with? (12) -
enhance
_ with _ matching _ rule (12) - filter! (14)
-
find
_ gems _ with _ sources (12) -
import
_ methods (4) -
infect
_ with _ assertions (1) -
keep
_ if (19) -
max
_ by (48) -
must
_ be _ within _ delta (1) -
must
_ be _ within _ epsilon (1) -
on
_ event (12) -
on
_ event _ with _ outargs (12) - owner (12)
- receiver (12)
-
replace
_ with (12) -
report
_ on _ exception (9) -
report
_ on _ exception= (9) - result (8)
-
result
_ with _ hash (8) -
ruby2
_ keywords (12) -
search
_ with _ source (12) - select! (19)
- sh (12)
-
start
_ with? (18) - strftime (12)
-
to
_ h (19) -
transform
_ keys (20) -
transform
_ keys! (20) -
transform
_ values (18) -
transform
_ values! (18) -
with
_ config (24) -
with
_ defaults (12) -
with
_ index (60) -
with
_ object (48) -
with
_ werror (24)
検索結果
先頭5件
-
Gem
:: SourceInfoCache # search _ with _ source(pattern , only _ platform = false , all = false) -> Array (27402.0) -
与えられた条件を満たす Gem::Specification と URL のリストを返します。
...cation と URL のリストを返します。
@param pattern 検索したい Gem を表す Gem::Dependency のインスタンスを指定します。
@param only_platform 真を指定するとプラットフォームが一致するもののみを返します。デフォルトは偽です。
@para......m all 真を指定するとキャッシュを更新してから検索を実行します。
@return 第一要素を Gem::Specification、第二要素を取得元の URL とする配列を要素とする配列を返します。... -
Data
# with(**kwargs) -> Data (24314.0) -
self をコピーしたオブジェクトを返します。
...@param kwargs コピーされたオブジェクトに設定されるメンバの値を指定します。
@raise ArgumentError 存在しないメンバを指定した場合に発生します。
//emlist[例][ruby]{
Dog = Data.define(:name, :age)
dog1 = Dog.new("Fred", 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.define は Data のサブクラスを作成する... -
REXML
:: Child # replace _ with(child) -> self (21302.0) -
親ノードの子ノード列上において、 self を child に置き換えます。
...親ノードの子ノード列上において、 self を child に置き換えます。
@param child 置き換え後のノード
@see REXML::Parent#replace_child... -
WIN32OLE
_ EVENT # on _ event _ with _ outargs(event = nil) {|*args| . . . } -> () (18402.0) -
イベント通知を受けて結果を呼び出し元へ返すブロックを登録します。
...べて
のイベントを対象とするブロックの登録となります。
WIN32OLE_EVENT#on_eventと異なり、イベントのブロック変数に戻り値を
設定できます。
@param event イベント名を文字列かシンボルで指定します。イベント名は大文......小文字を区別します。省略時にはすべてのイベントが対象となります。
@param args サーバがイベント通知時に指定した引数の配列です。
eventパラメータを省略した場合、第1要素にはイベントのメソッ
ド名......@raise WIN32OLERuntimeError WIN32OLE_EVENT#unadviseによってイベン
トソースと切断済みです。
ie = WIN32OLE.new('InternetExplorer.Application')
ev = WIN32OLE_EVENT.new(ie, 'DWebBrowserEvents2')
ev.on_event('BeforeNavigate2') do |*args|
args[6]... -
Symbol
# start _ with?(*prefixes) -> bool (18344.0) -
self の先頭が prefixes のいずれかであるとき true を返します。
...先頭が prefixes のいずれかであるとき true を返します。
(self.to_s.start_with?と同じです。)
@param prefixes パターンを表す文字列または正規表現 (のリスト)
@see Symbol#end_with?
@see String#start_with?
//emlist[][ruby]{
:hello.start_with?("hell")......#=> true
:hello.start_with?(/H/i) #=> true
# returns true if one of the prefixes matches.
:hello.start_with?("heaven", "hell") #=> true
:hello.start_with?("heaven", "paradise") #=> false
//}... -
String
# start _ with?(*prefixes) -> bool (18338.0) -
self の先頭が prefixes のいずれかであるとき true を返します。
...prefixes のいずれかであるとき true を返します。
@param prefixes パターンを表す文字列または正規表現 (のリスト)
//emlist[例][ruby]{
"string".start_with?("str") # => true
"string".start_with?("ing") # => false
"string".start_with?("ing", "str")......# => true
"string".start_with?(/\w/) # => true
"string".start_with?(/\d/) # => false
//}
@see String#end_with?
@see String#delete_prefix, String#delete_prefix!... -
REXML
:: Element # each _ element _ with _ attribute(key , value = nil , max = 0 , name = nil) {|element| . . . } -> () (18326.0) -
特定の属性を持つすべての子要素を引数としてブロックを呼び出します。
...と、それは xpath 文字列と見なされ、
それにマッチするもののみが対象となります。
max に 0 を指定すると、max の指定は無視されます(0個ではありません)。
@param key 属性名(文字列)
@param value 属性値(文字列)
@param max ブロッ......個数
@param name xpath文字列
//emlist[][ruby]{
require 'rexml/document'
doc = REXML::Document.new("<a><b id='1'/><c id='2'/><d id='1'/><e/></a>")
doc.root.each_element_with_attribute('id'){|e| p e }
# >> <b id='1'/>
# >> <c id='2'/>
# >> <d id='1'/>
doc.root.each_element_with_attribute('id', '......1'){|e| p e }
# >> <b id='1'/>
# >> <d id='1'/>
doc.root.each_element_with_attribute('id', '1', 1){|e| p e }
# >> <b id='1'/>
doc.root.each_element_with_attribute('id', '1', 0, 'd'){|e| p e }
# >> <d id='1'/>
//}... -
String
# start _ with?(*strs) -> bool (18326.0) -
self の先頭が strs のいずれかであるとき true を返します。
...strs のいずれかであるとき true を返します。
@param strs パターンを表す文字列 (のリスト)
//emlist[例][ruby]{
"string".start_with?("str") # => true
"string".start_with?("ing") # => false
"string".start_with?("ing", "str") # => true
//}
@see Stri......ng#end_with?... -
Prime
:: PseudoPrimeGenerator # each _ with _ index -> Enumerator (18317.0) -
与えられたブロックに対して、素数を0起点の連番を渡して評価します。
...します。
@return ブロックを与えられた場合は self を返します。 ブロックを与えられなかった場合は 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 # each _ with _ index {|prime , index| . . . } -> self (18317.0) -
与えられたブロックに対して、素数を0起点の連番を渡して評価します。
...します。
@return ブロックを与えられた場合は self を返します。 ブロックを与えられなかった場合は 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 (18317.0) -
与えられたブロックに対して、素数を0起点の連番を渡して評価します。
...します。
@return ブロックを与えられた場合は self を返します。 ブロックを与えられなかった場合は 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...