種類
ライブラリ
- ビルトイン (556)
-
cgi
/ core (36) - cmath (6)
- delegate (12)
- erb (60)
-
fiddle
/ import (12) -
fiddle
/ types (24) -
irb
/ ext / math-mode (4) - matrix (24)
-
minitest
/ spec (1) -
minitest
/ unit (2) - mkmf (84)
- monitor (24)
-
mutex
_ m (12) -
net
/ http (12) -
net
/ smtp (12) - objspace (12)
- openssl (60)
- pathname (51)
- rake (24)
-
rake
/ packagetask (24) - rbconfig (12)
-
rdoc
/ code _ object (12) -
rdoc
/ context (48) -
rdoc
/ parser / text (12) -
rdoc
/ text (12) -
rexml
/ document (12) -
rexml
/ parsers / sax2parser (60) -
rexml
/ sax2listener (12) -
rexml
/ streamlistener (24) -
rinda
/ tuplespace (12) -
rubygems
/ version (12) - set (23)
- singleton (24)
- socket (36)
- syslog (24)
- tsort (116)
-
webrick
/ httpauth / htdigest (12) -
webrick
/ httpauth / htpasswd (12) -
webrick
/ httpresponse (60) -
webrick
/ httpserver (24) -
webrick
/ httputils (12) - win32ole (48)
クラス
- Delegator (12)
- ERB (12)
-
Gem
:: Version (12) -
IRB
:: Context (4) - Method (24)
- Module (216)
- Object (121)
-
OpenSSL
:: ASN1 :: ObjectId (24) -
OpenSSL
:: X509 :: Extension (24) - Pathname (51)
-
RDoc
:: Context (48) -
RDoc
:: Options (24) -
REXML
:: AttlistDecl (12) -
REXML
:: Parsers :: SAX2Parser (60) -
Rake
:: FileList (24) -
Rake
:: PackageTask (24) - Refinement (4)
- Set (32)
- Socket (24)
- String (12)
- TracePoint (12)
- UnboundMethod (12)
- Vector (24)
-
WEBrick
:: Cookie (24) -
WEBrick
:: HTTPResponse (60) -
WEBrick
:: HTTPServer (24) - WIN32OLE (36)
-
WIN32OLE
_ VARIANT (12)
モジュール
-
CGI
:: QueryExtension (36) -
ERB
:: Util (48) - Enumerable (24)
- GC (12)
- Kernel (96)
-
MiniTest
:: Assertions (2) - ObjectSpace (12)
- Process (24)
-
Process
:: GID (24) -
Process
:: UID (24) -
RDoc
:: Text (12) -
REXML
:: StreamListener (12) - RbConfig (12)
- Singleton (12)
-
Socket
:: Constants (12) - Syslog (12)
- TSort (116)
-
WEBrick
:: HTTPUtils (12)
キーワード
-
1
. 6 . 8から1 . 8 . 0への変更点(まとめ) (12) - < (12)
- <= (12)
- <=> (12)
- === (8)
- > (12)
- >= (12)
- BasicTypes (12)
- CMath (6)
- CStruct (12)
- CodeObject (12)
- Constants (12)
- Enumerator (12)
- HTTPExceptions (12)
- Htdigest (12)
- Htpasswd (12)
-
MCAST
_ INCLUDE (24) - Math (12)
- Monitor (12)
- MonitorMixin (12)
-
Mutex
_ m (12) -
NEWS for Ruby 3
. 1 . 0 (4) - SAX2Listener (12)
- SMTPError (12)
- SSLSocket (12)
- Set (3)
- Singleton (12)
- StreamListener (12)
- TOPDIR (12)
- Text (12)
- TupleSpace (12)
- WUNTRACED (12)
- Win32Types (12)
-
_ getproperty (12) -
_ invoke (12) -
_ setproperty (12) -
add
_ include (12) -
add
_ to (12) - ancestors (12)
-
append
_ features (12) -
assert
_ includes (1) -
assert
_ send (1) -
bigdecimal
/ math (12) - 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) -
drb
/ extservm (12) - each (24)
-
each
_ child (24) -
each
_ entry (39) -
each
_ strongly _ connected _ component (23) -
each
_ strongly _ connected _ component _ from (46) -
enable
_ config (24) - entitydecl (12)
- entries (12)
- eql? (12)
- extend (12)
-
fiddle
/ types (12) -
garbage
_ collect (12) - getrlimit (12)
- h (12)
-
has
_ key? (12) -
html
_ escape (12) -
import
_ methods (4) - include? (48)
-
include
_ class _ new (12) -
include
_ line _ numbers (12) - includes (12)
-
initialize
_ methods _ etc (12) - inspect (12)
- instance (12)
-
irb
/ completion (12) -
is
_ a? (12) - key? (12)
-
kind
_ of? (12) - listen (60)
- markup (12)
- mask (12)
-
math
_ mode= (4) - member? (12)
-
method
_ defined? (12) - methods (12)
-
mime
_ type (12) - mount (12)
-
must
_ include (1) - new (72)
-
package
_ files (12) - parse (12)
-
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) -
rake
/ packagetask (12) -
rake
/ rdoctask (12) -
rb
_ ary _ includes (12) -
rb
_ mod _ append _ features (12) -
rb
_ mod _ include (12) - rdoc (12)
-
rdoc
_ include (12) - resolve (12)
-
respond
_ to? (12) -
respond
_ to _ missing? (24) -
rexml
/ parsers / streamparser (12) -
ruby 1
. 6 feature (12) -
ruby 1
. 8 . 4 feature (12) -
ruby2
_ keywords (12) -
rubygems
/ commands / install _ command (12) - set (9)
-
singleton
_ methods (12) -
strongly
_ connected _ components (12) - switch (48)
- syscall (12)
-
to
_ s (24) -
top
_ include (12) -
trace
_ object _ allocations (12) -
try
_ cpp (24) - tsort (24)
-
tsort
_ each (23) - u (12)
-
url
_ encode (12) -
virtual
_ host (12) -
with
_ config (24) - オブジェクト (12)
検索結果
先頭5件
-
String
# include?(substr) -> bool (9219.0) -
文字列中に部分文字列 substr が含まれていれば真を返します。
...文字列中に部分文字列 substr が含まれていれば真を返します。
@param substr 検索する文字列
//emlist[例][ruby]{
"hello".include? "lo" #=> true
"hello".include? "ol" #=> false
"hello".include? ?h #=> true
//}... -
RDoc
:: Context # includes -> [RDoc :: Include] (9217.0) -
追加された RDoc::Include の配列を返します。
...追加された RDoc::Include の配列を返します。... -
RDoc
:: Options # rdoc _ include -> [String] (9217.0) -
コマンドライン引数の --include オプションで指定したディレクトリを文字列 の配列で返します。
...コマンドライン引数の --include オプションで指定したディレクトリを文字列
の配列で返します。
指定しなかった場合は ['.'] を返します。... -
Delegator
# respond _ to _ missing?(m , include _ private) -> bool (9207.0) -
@param m メソッド名を指定します。
...@param m メソッド名を指定します。
@param include_private 真を指定すると private メソッドも調べます。... -
RDoc
:: Options # include _ line _ numbers -> bool (9117.0) -
コマンドライン引数の --include-line-numbers を指定していた場合に true を返します。そうでない場合は false を返します。
...コマンドライン引数の --include-line-numbers を指定していた場合に true
を返します。そうでない場合は false を返します。... -
Set
# include?(o) -> bool (9113.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
# strongly _ connected _ components -> Array (9106.0) -
強連結成分の集まりを配列の配列として返します。 この配列は子から親に向かってソートされています。 各要素は強連結成分を表す配列です。
...t[使用例][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=>[]}
p non_sort.strongly_connected_components
#=> [[4], [2, 3], [1]]
//}
@see TSort.......strongly_connected_components... -
TSort
# tsort -> Array (9106.0) -
頂点をトポロジカルソートして得られる配列を返します。 この配列は子から親に向かってソートされています。 すなわち、最初の要素は子を持たず、最後の要素は親を持ちません。
...ise 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=>[]}.tsort
p......sorted #=> [3, 2, 1, 4]
//}
@see TSort.tsort... -
TSort
# tsort _ each -> Enumerator (9106.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... -
TSort
# tsort _ each {|node| . . . } -> nil (9106.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...