ライブラリ
- ビルトイン (429)
-
cgi
/ core (36) - delegate (12)
- erb (12)
-
irb
/ ext / math-mode (4) -
minitest
/ spec (1) -
minitest
/ unit (2) - mkmf (84)
- pathname (51)
- rake (12)
-
rdoc
/ context (24) -
rdoc
/ text (12) -
rexml
/ document (12) -
rexml
/ parsers / sax2parser (60) -
rexml
/ streamlistener (12) - set (23)
- socket (12)
- tsort (93)
-
webrick
/ httpresponse (48) -
webrick
/ httpserver (24) - win32ole (36)
クラス
- Delegator (12)
- ERB (12)
-
IRB
:: Context (4) - Method (24)
- Module (204)
- Object (121)
- Pathname (51)
-
RDoc
:: Context (24) -
REXML
:: AttlistDecl (12) -
REXML
:: Parsers :: SAX2Parser (60) -
Rake
:: FileList (12) - Set (32)
- Socket (12)
- String (12)
- TracePoint (12)
- UnboundMethod (12)
-
WEBrick
:: HTTPResponse (48) -
WEBrick
:: HTTPServer (24) - WIN32OLE (36)
モジュール
-
CGI
:: QueryExtension (36) - Enumerable (24)
- GC (12)
- Kernel (84)
-
MiniTest
:: Assertions (2) -
RDoc
:: Text (12) -
REXML
:: StreamListener (12) - TSort (93)
キーワード
- < (12)
- <= (12)
- <=> (12)
- === (8)
- > (12)
- >= (12)
-
_ getproperty (12) -
_ invoke (12) -
_ setproperty (12) -
add
_ include (12) -
add
_ to (12) - ancestors (12)
-
append
_ features (12) -
assert
_ includes (1) -
assert
_ send (1) - bind (12)
- body= (12)
- chunked= (12)
-
connect
_ nonblock (12) -
const
_ defined? (12) -
const
_ get (12) -
const
_ source _ location (12) - constants (12)
-
content
_ length (12) -
content
_ length= (12) -
def
_ module (12) -
defined
_ class (12) -
dir
_ config (12) -
each
_ child (24) -
each
_ entry (39) -
each
_ strongly _ connected _ component (23) -
each
_ strongly _ connected _ component _ from (23) -
enable
_ config (24) - entitydecl (12)
- entries (12)
- extend (12)
-
garbage
_ collect (12) -
has
_ key? (12) - include? (48)
- inspect (12)
-
is
_ a? (12) - key? (12)
-
kind
_ of? (12) - listen (60)
- markup (12)
-
math
_ mode= (4) - member? (12)
-
method
_ defined? (12) - methods (12)
- mount (12)
-
must
_ include (1) -
prepend
_ features (12) -
private
_ instance _ methods (12) -
private
_ method _ defined? (12) -
private
_ methods (12) -
protected
_ method _ defined? (12) -
protected
_ methods (12) -
public
_ method _ defined? (12) -
public
_ methods (12) -
respond
_ to? (12) -
respond
_ to _ missing? (24) -
singleton
_ methods (12) -
strongly
_ connected _ components (12) -
to
_ s (12) -
try
_ cpp (24) - tsort (12)
-
tsort
_ each (23) -
virtual
_ host (12) -
with
_ config (24)
検索結果
先頭5件
-
Rake
:: FileList # include(*filenames) -> self (21120.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 (12231.0) -
与えられたコレクションにオブジェクトが含まれている場合、検査にパスしたことになります。
...クトが含まれている場合、検査にパスしたことになります。
@param collection 任意のコレクションを指定します。
@param object 任意のオブジェクトを指定します。
@param message 検査に失敗した場合に表示するメッセージを指定し......か Proc を指定します。Proc である場合は Proc#call した
結果を使用します。
@raise MiniTest::Assertion 第一引数のオブジェクトが include? メソッドを持たない場合に発生します。
与えられたコレクショ... -
Module
# protected _ method _ defined?(name , inherit=true) -> bool (12231.0) -
インスタンスメソッド name がモジュールに定義されており、 しかもその可視性が protected であるときに true を返します。 そうでなければ false を返します。
...おり、
しかもその可視性が protected であるときに true を返します。
そうでなければ false を返します。
@param name Symbol か String を指定します。
@param inherit 真を指定するとスーパークラスや include したモジュールで
定義......。
@see Module#method_defined?, Module#public_method_defined?, Module#private_method_defined?
//emlist[例][ruby]{
module A
def method1() end
end
class B
protected
def method2() end
end
class C < B
include A
def method3() end
end
A.method_defined? :method1 #=> tru......e
C.protected_method_defined? "method1" #=> false
C.protected_method_defined? "method2" #=> true
C.protected_method_defined? "method2", true #=> true
C.protected_method_defined? "method2", false #=> false
C.method_defined? "method2" #=> true
//}... -
Object
# must _ include(object) -> true (12226.0) -
自身に与えられたオブジェクトが含まれている場合、検査にパスしたことになります。
...
@param object 任意のオブジェクトを指定します。
@raise MiniTest::Assertion 自身が include? メソッドを持たない場合に発生します。
自身に与えられたオブジェクトが含まれていない場合に発生します。
@see MiniTe......st::Assertions#assert_includes... -
Object
# protected _ methods(include _ inherited = true) -> [Symbol] (9420.0) -
そのオブジェクトが理解できる protected メソッド名の一覧を返します。
...解できる protected メソッド名の一覧を返します。
@param include_inherited 偽となる値を指定すると自身のクラスのスーパークラスで定義されたメソッドを除きます。
@see Module#protected_instance_methods,Object#methods,Object#singleton_methods... -
RDoc
:: Context # add _ include(an _ include) -> () (9237.0) -
引数で指定した RDoc::Include オブジェクトを追加します。
...引数で指定した RDoc::Include オブジェクトを追加します。
@param an_include RDoc::Include オブジェクトを指定します。... -
Delegator
# respond _ to _ missing?(m , include _ private) -> bool (9230.0) -
@param m メソッド名を指定します。
...
@param m メソッド名を指定します。
@param include_private 真を指定すると private メソッドも調べます。... -
String
# include?(substr) -> bool (9226.0) -
文字列中に部分文字列 substr が含まれていれば真を返します。
...文字列中に部分文字列 substr が含まれていれば真を返します。
@param substr 検索する文字列
//emlist[例][ruby]{
"hello".include? "lo" #=> true
"hello".include? "ol" #=> false
"hello".include? ?h #=> true
//}... -
Set
# include?(o) -> bool (9120.0) -
オブジェクト o がその集合に属する場合に true を返します。
...オブジェクト o がその集合に属する場合に true を返します。
@param o オブジェクトを指定します。
//emlist[][ruby]{
require 'set'
set = Set['hello', 'world']
p set.include?('world') # => true
p set.include?('bye') # => false
//}... -
TSort
# tsort -> Array (9119.0) -
頂点をトポロジカルソートして得られる配列を返します。 この配列は子から親に向かってソートされています。 すなわち、最初の要素は子を持たず、最後の要素は親を持ちません。
...
@raise TSort::Cyclic 閉路が存在するとき、発生します。
//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
sorted = {1=>[2, 3], 2=>[3], 3=>[], 4=>[]}.tso......rt
p sorted #=> [3, 2, 1, 4]
//}
@see TSort.tsort... -
TSort
# tsort _ each -> Enumerator (9119.0) -
TSort#tsort メソッドのイテレータ版です。 obj.tsort_each は obj.tsort.each と似ていますが、 ブロックの評価中に obj が変更された場合は予期しない結果になる ことがあります。
...
TSort#tsort メソッドのイテレータ版です。
obj.tsort_each は obj.tsort.each と似ていますが、
ブロックの評価中に obj が変更された場合は予期しない結果になる
ことがあります。
tsort_each は nil を返します。
閉路が存在するとき、...... TSort::Cyclic を起こします。
@raise TSort::Cyclic 閉路が存在するとき、発生します.
//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, 3], 2=>[3], 3=>[], 4=>[]}
non_sort.tsort_each {|node|
non_sort.tsort_each_child(node){|child|
printf("%d -> %d\n", node, child)
}
}
# 出力
#=> 2 -> 3
#=> 1 -> 2
#=> 1 -> 3
//}
@see TSort.tsort_each...