856件ヒット
[1-100件を表示]
(0.190秒)
ライブラリ
- ビルトイン (345)
-
cgi
/ core (33) - csv (22)
- dbm (11)
- delegate (11)
- erb (11)
- gdbm (11)
- ipaddr (11)
-
irb
/ ext / math-mode (4) - matrix (11)
-
minitest
/ unit (2) - mkmf (55)
- pathname (46)
- rake (11)
-
rdoc
/ context (33) -
rdoc
/ text (11) -
rexml
/ document (11) -
rexml
/ parsers / sax2parser (55) -
rexml
/ streamlistener (11) - sdbm (11)
- socket (11)
- tsort (74)
-
webrick
/ httpresponse (22) - win32ole (33)
クラス
- Array (11)
-
CSV
:: Row (22) - DBM (11)
- Delegator (11)
- ERB (11)
- GDBM (11)
- Hash (11)
- IPAddr (11)
-
IRB
:: Context (4) - Method (10)
- Module (142)
- Object (55)
- Pathname (46)
-
RDoc
:: Context (33) -
REXML
:: AttlistDecl (11) -
REXML
:: Parsers :: SAX2Parser (55) -
Rake
:: FileList (11) - Range (50)
- SDBM (11)
- Socket (11)
- TracePoint (11)
- Vector (11)
-
WEBrick
:: HTTPResponse (22) - WIN32OLE (33)
モジュール
-
CGI
:: QueryExtension (33) - Enumerable (44)
- GC (11)
- Kernel (55)
-
MiniTest
:: Assertions (2) -
RDoc
:: Text (11) -
REXML
:: StreamListener (11) - TSort (74)
キーワード
- === (11)
-
_ getproperty (11) -
_ invoke (11) -
_ setproperty (11) -
add
_ include (11) -
add
_ to (11) - ancestors (11)
-
append
_ features (11) -
assert
_ includes (1) -
assert
_ send (1) - body= (11)
- chunked= (11)
-
connect
_ nonblock (11) -
const
_ defined? (11) -
const
_ get (11) -
const
_ source _ location (5) - constants (11)
- cover? (17)
-
def
_ module (11) -
defined
_ class (11) -
dir
_ config (11) - each (11)
-
each
_ child (22) -
each
_ entry (35) -
each
_ strongly _ connected _ component (21) -
each
_ strongly _ connected _ component _ from (21) -
enable
_ config (22) - entitydecl (11)
- entries (11)
- extend (11)
-
garbage
_ collect (11) -
has
_ key? (11) - header? (11)
- include? (121)
- included (11)
-
initialize
_ methods _ etc (11) - inspect (5)
- key? (11)
-
kind
_ of? (11) - listen (55)
- markup (11)
-
math
_ mode= (4) - member? (22)
-
method
_ defined? (11) -
prepend
_ features (11) -
private
_ instance _ methods (11) -
private
_ method _ defined? (11) -
private
_ methods (11) -
protected
_ method _ defined? (11) -
public
_ method _ defined? (11) -
respond
_ to? (11) -
respond
_ to _ missing? (22) -
ruby2
_ keywords (5) -
strongly
_ connected _ components (11) -
to
_ s (5) -
tsort
_ each (21) -
with
_ config (22)
検索結果
先頭5件
-
Rake
:: FileList # include(*filenames) -> self (27314.0) -
ファイル名のパターンを追加リストに登録します。 配列が与えられた場合、配列の各要素が追加されます。
...ターンを追加リストに登録します。
配列が与えられた場合、配列の各要素が追加されます。
@param filenames 追加するファイル名のパターンを指定します。
例:
file_list.include("*.java", "*.cfg")
file_list.include %w( math.c lib.h *.o )... -
MiniTest
:: Assertions # assert _ includes(collection , object , message = nil) -> true (21307.0) -
与えられたコレクションにオブジェクトが含まれている場合、検査にパスしたことになります。
...が含まれている場合、検査にパスしたことになります。
@param collection 任意のコレクションを指定します。
@param object 任意のオブジェクトを指定します。
@param message 検査に失敗した場合に表示するメッセージを指定します......文字列か Proc を指定します。Proc である場合は Proc#call した
結果を使用します。
@raise MiniTest::Assertion 第一引数のオブジェクトが include? メソッドを持たない場合に発生します。
与... -
RDoc
:: Context # add _ include(an _ include) -> () (18531.0) -
引数で指定した RDoc::Include オブジェクトを追加します。
...引数で指定した RDoc::Include オブジェクトを追加します。
@param an_include RDoc::Include オブジェクトを指定します。... -
Array
# include?(val) -> bool (15338.0) -
配列が val と == で等しい要素を持つ時に真を返します。
...配列が val と == で等しい要素を持つ時に真を返します。
@param val オブジェクトを指定します。
//emlist[例][ruby]{
a = [ "a", "b", "c" ]
a.include?("b") #=> true
a.include?("z") #=> false
//}... -
Enumerable
# include?(val) -> bool (15314.0) -
val と == の関係にある要素を含むとき真を返します。
...val と == の関係にある要素を含むとき真を返します。
@param val 任意のオブジェクト
//emlist[例][ruby]{
[2, 4, 6].include? 2 #=> true
[2, 4, 6].include? 1 #=> false
[2, 4, 6].member? 2 #=> true
[2, 4, 6].member? 1 #=> false
//}... -
Range
# include?(obj) -> bool (15250.0) -
obj が範囲内に含まれている時に true を返します。 そうでない場合は、false を返します。
...でない場合は、false を返します。
<=> メソッドによる演算により範囲内かどうかを判定するには Range#cover? を使用してください。
始端・終端・引数が数値であれば、 Range#cover? と同様の動きをします。
@param obj 比較対象の......指定します。
//emlist[例][ruby]{
p ("a" .. "c").include?("b") # => true
p ("a" .. "c").include?("B") # => false
p ("a" .. "c").include?("ba") # => false
p ("a" .. "c").cover?("ba") # => true
p (1 .. 3).include?(1.5) # => true
//}
@see d:spec/control#case
@see Range#cover?, Range#===... -
MiniTest
:: Assertions # assert _ send(array , message = nil) -> true (15207.0) -
引数から、式を取り出して評価した結果が真の場合、検査にパスしたことになります。
...スしたことになります。
@param array 第一要素にレシーバとなる任意のオブジェクト、第二要素にメソッド名、
第三要素にパラメータをそれぞれ指定した配列を指定します。
@param message 検査に失敗した場合に表示......します。
文字列か Proc を指定します。Proc である場合は Proc#call した
結果を使用します。
@raise MiniTest::Assertion 取り出した式が偽を返す場合に発生します。
例:
assert_send([%w[foo bar baz], :include?, 'baz'])... -
REXML
:: AttlistDecl # include?(key) -> bool (15202.0) -
key が属性名であるならば真を返します。
...key が属性名であるならば真を返します。
@param key 属性名であるかどうか判定する文字列... -
Module
# included(class _ or _ module) -> () (12341.0) -
self が Module#include されたときに対象のクラスまたはモジュー ルを引数にしてインタプリタがこのメソッドを呼び出します。
...#include されたときに対象のクラスまたはモジュー
ルを引数にしてインタプリタがこのメソッドを呼び出します。
@param class_or_module Module#include を実行したオブジェクト
//emlist[例][ruby]{
module Foo
def self.included(mod)
p "#{mod} inc......lude #{self}"
end
end
class Bar
include Foo
end
# => "Bar include Foo"
//}
@see Module#append_features... -
TSort
# each _ strongly _ connected _ component _ from(node , id _ map={} , stack=[]) -> Enumerator (12313.0) -
node から到達可能な強連結成分についてのイテレータです。
...
node から到達可能な強連結成分についてのイテレータです。
返す値は規定されていません。
each_strongly_connected_component_from は
tsort_each_node を呼びません。
@param node ノードを指定します。
//emlist[例 到達可能なノードを表示......class Hash
include TSort
alias tsort_each_node each_key
def tsort_each_child(node, &block)
fetch(node).each(&block)
end
end
non_sort = {1=>[2], 2=>[3, 4], 3=>[2], 4=>[]}
non_sort.each_strongly_connected_component{|nodes|
p nodes
nodes.each {|node|
non_sort.each_strongly_connec......ted_component_from(node){|ns|
printf("%s -> %s\n", node, ns.join(","))
}
}
}
#出力
#=> [4]
#=> 4 -> 4
#=> [2, 3]
#=> 2 -> 4
#=> 2 -> 2,3
#=> 3 -> 4
#=> 3 -> 3,2
#=> [1]
#=> 1 -> 4
#=> 1 -> 2,3
#=> 1 -> 1
//}
@see TSort.each_strongly_connected_component_from... -
TSort
# each _ strongly _ connected _ component _ from(node , id _ map={} , stack=[]) {|nodes| . . . } -> () (12313.0) -
node から到達可能な強連結成分についてのイテレータです。
...
node から到達可能な強連結成分についてのイテレータです。
返す値は規定されていません。
each_strongly_connected_component_from は
tsort_each_node を呼びません。
@param node ノードを指定します。
//emlist[例 到達可能なノードを表示......class Hash
include TSort
alias tsort_each_node each_key
def tsort_each_child(node, &block)
fetch(node).each(&block)
end
end
non_sort = {1=>[2], 2=>[3, 4], 3=>[2], 4=>[]}
non_sort.each_strongly_connected_component{|nodes|
p nodes
nodes.each {|node|
non_sort.each_strongly_connec......ted_component_from(node){|ns|
printf("%s -> %s\n", node, ns.join(","))
}
}
}
#出力
#=> [4]
#=> 4 -> 4
#=> [2, 3]
#=> 2 -> 4
#=> 2 -> 2,3
#=> 3 -> 4
#=> 3 -> 3,2
#=> [1]
#=> 1 -> 4
#=> 1 -> 2,3
#=> 1 -> 1
//}
@see TSort.each_strongly_connected_component_from... -
TracePoint
# defined _ class -> Class | module (12313.0) -
メソッドを定義したクラスかモジュールを返します。
...class C; def foo; end; end
trace = TracePoint.new(:call) do |tp|
p tp.defined_class # => C
end.enable do
C.new.foo
end
//}
メソッドがモジュールで定義されていた場合も(include に関係なく)モジュー
ルを返します。
//emlist[例][ruby]{
module M; def foo; end; end......class C; include M; end;
trace = TracePoint.new(:call) do |tp|
p tp.defined_class # => M
end.enable do
C.new.foo
end
//}
[注意] 特異メソッドを実行した場合は TracePoint#defined_class は特異クラ
スを返します。また、Kernel.#set_trace_func の 6 番目のブロック......なく元のクラスを返します。
//emlist[例][ruby]{
class C; def self.foo; end; end
trace = TracePoint.new(:call) do |tp|
p tp.defined_class # => #<Class:C>
end.enable do
C.foo
end
//}
Kernel.#set_trace_func と TracePoint の上記の差分に注意して
ください。
@see 50864...