ライブラリ
- ビルトイン (427)
-
cgi
/ core (33) - csv (22)
- delegate (11)
- erb (11)
- ipaddr (11)
-
irb
/ ext / math-mode (4) - matrix (11)
-
minitest
/ spec (1) -
minitest
/ unit (2) - mkmf (77)
- pathname (46)
- rake (11)
-
rdoc
/ context (44) -
rdoc
/ text (11) -
rexml
/ document (11) -
rexml
/ parsers / sax2parser (55) -
rexml
/ streamlistener (11) -
rubygems
/ version (11) - set (4)
- socket (11)
- tsort (74)
-
webrick
/ httpresponse (55) -
webrick
/ httpserver (11) - win32ole (33)
クラス
- Array (11)
-
CSV
:: Row (22) - Delegator (11)
- ERB (11)
-
Gem
:: Version (11) - IPAddr (11)
-
IRB
:: Context (4) - Method (22)
- Module (187)
- Object (78)
- Pathname (46)
-
RDoc
:: Context (44) -
RDoc
:: Options (22) -
REXML
:: AttlistDecl (11) -
REXML
:: Parsers :: SAX2Parser (55) -
Rake
:: FileList (11) - Range (50)
- Refinement (3)
- Set (4)
- Socket (11)
- String (11)
- TracePoint (11)
- Vector (11)
-
WEBrick
:: HTTPResponse (55) -
WEBrick
:: HTTPServer (11) - WIN32OLE (33)
モジュール
-
CGI
:: QueryExtension (33) - Enumerable (44)
- GC (11)
- Kernel (77)
-
MiniTest
:: Assertions (2) -
RDoc
:: Text (11) -
REXML
:: StreamListener (11) - TSort (74)
キーワード
- < (11)
- <= (11)
- <=> (11)
- === (11)
- > (11)
- >= (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)
-
content
_ length (11) -
content
_ length= (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)
- eql? (11)
-
garbage
_ collect (11) -
has
_ key? (11) - header? (11)
-
import
_ methods (3) - include? (88)
-
include
_ line _ numbers (11) - included (11)
- includes (11)
-
initialize
_ methods _ etc (11) - inspect (11)
- key? (11)
- listen (55)
- markup (11)
-
math
_ mode= (4) - member? (26)
-
method
_ defined? (6) - methods (11)
- mount (11)
-
must
_ include (1) -
prepend
_ features (11) -
private
_ instance _ methods (11) -
private
_ method _ defined? (11) -
private
_ methods (11) -
protected
_ method _ defined? (11) -
protected
_ methods (11) -
public
_ method _ defined? (6) -
public
_ methods (11) -
rdoc
_ include (11) -
respond
_ to? (11) -
respond
_ to _ missing? (22) -
ruby2
_ keywords (5) -
singleton
_ methods (11) -
strongly
_ connected _ components (11) -
to
_ s (22) -
try
_ cpp (22) -
tsort
_ each (21) -
with
_ config (22)
検索結果
先頭5件
-
Rake
:: FileList # include(*filenames) -> self (27214.0) -
ファイル名のパターンを追加リストに登録します。 配列が与えられた場合、配列の各要素が追加されます。
...ターンを追加リストに登録します。
配列が与えられた場合、配列の各要素が追加されます。
@param filenames 追加するファイル名のパターンを指定します。
例:
file_list.include("*.java", "*.cfg")
file_list.include %w( math.c lib.h *.o )... -
RDoc
:: Options # rdoc _ include -> [String] (21318.0) -
コマンドライン引数の --include オプションで指定したディレクトリを文字列 の配列で返します。
...コマンドライン引数の --include オプションで指定したディレクトリを文字列
の配列で返します。
指定しなかった場合は ['.'] を返します。... -
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
:: Options # include _ line _ numbers -> bool (18318.0) -
コマンドライン引数の --include-line-numbers を指定していた場合に true を返します。そうでない場合は false を返します。
...コマンドライン引数の --include-line-numbers を指定していた場合に true
を返します。そうでない場合は false を返します。... -
Module
# prepend _ features(mod) -> self (18307.0) -
Module#prepend から呼び出されるメソッドで、 prepend の処理の実体です。このメソッド自体は mod で指定した モジュール/クラスの継承チェインの先頭に self を追加します。
...Module#prepend から呼び出されるメソッドで、
prepend の処理の実体です。このメソッド自体は mod で指定した
モジュール/クラスの継承チェインの先頭に self を追加します。
このメソッドを上書きすることで、prepend の処理を変......ram mod prepend を呼び出したモジュール
@return mod が返されます
//emlist[例][ruby]{
class Recorder
RECORDS = []
end
module X
def self.prepend_features(mod)
Recorder::RECORDS << mod
end
end
class A
prepend X
end
class B
include X
end
class C
prepend X
end
Recor......der::RECORDS # => [A, C]
//}
@see Module#prepend, Module#prepended... -
RDoc
:: Context # includes -> [RDoc :: Include] (15518.0) -
追加された RDoc::Include の配列を返します。
...追加された RDoc::Include の配列を返します。... -
RDoc
:: Context # add _ include(an _ include) -> () (15431.0) -
引数で指定した RDoc::Include オブジェクトを追加します。
...引数で指定した RDoc::Include オブジェクトを追加します。
@param an_include RDoc::Include オブジェクトを指定します。... -
String
# include?(substr) -> bool (15320.0) -
文字列中に部分文字列 substr が含まれていれば真を返します。
...文字列中に部分文字列 substr が含まれていれば真を返します。
@param substr 検索する文字列
//emlist[例][ruby]{
"hello".include? "lo" #=> true
"hello".include? "ol" #=> false
"hello".include? ?h #=> true
//}... -
TSort
# each _ strongly _ connected _ component _ from(node , id _ map={} , stack=[]) -> Enumerator (15313.0) -
node から到達可能な強連結成分についてのイテレータです。
...
node から到達可能な強連結成分についてのイテレータです。
返す値は規定されていません。
each_strongly_connected_component_from は
tsort_each_node を呼びません。
@param node ノードを指定します。
//emlist[例 到達可能なノードを表示......][ruby]{
require 'tsort'
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_connected_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| . . . } -> () (15313.0) -
node から到達可能な強連結成分についてのイテレータです。
...
node から到達可能な強連結成分についてのイテレータです。
返す値は規定されていません。
each_strongly_connected_component_from は
tsort_each_node を呼びません。
@param node ノードを指定します。
//emlist[例 到達可能なノードを表示......][ruby]{
require 'tsort'
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_connected_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... -
Range
# include?(obj) -> bool (15226.0) -
obj が範囲内に含まれている時に true を返します。 そうでない場合は、false を返します。
...ている時に true を返します。
そうでない場合は、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#===...