ライブラリ
- ビルトイン (531)
-
bigdecimal
/ ludcmp (11) -
cgi
/ core (33) - csv (22)
- dbm (11)
- delegate (11)
- erb (55)
- gdbm (11)
- ipaddr (22)
- matrix (22)
-
minitest
/ spec (1) -
minitest
/ unit (2) - mkmf (77)
- monitor (11)
- observer (11)
- openssl (22)
- pathname (46)
- rake (22)
-
rake
/ packagetask (22) - rbconfig (11)
-
rdoc
/ context (44) -
rdoc
/ text (11) -
rexml
/ document (11) -
rexml
/ parsers / sax2parser (55) -
rexml
/ streamlistener (11) -
rubygems
/ version (11) - sdbm (11)
- set (11)
- socket (33)
- syslog (11)
- tsort (106)
-
webrick
/ httpauth / htpasswd (11) -
webrick
/ httpresponse (55) -
webrick
/ httpserver (22) -
webrick
/ httputils (11) - win32ole (44)
クラス
- Array (11)
-
CSV
:: Row (22) - DBM (11)
- Delegator (11)
- ERB (11)
- GDBM (11)
-
Gem
:: Version (11) - Hash (11)
- IPAddr (22)
- Method (22)
- Module (187)
- Object (78)
-
OpenSSL
:: X509 :: Extension (22) - Pathname (46)
- Proc (5)
-
RDoc
:: Context (44) -
RDoc
:: Options (22) -
REXML
:: AttlistDecl (11) -
REXML
:: Parsers :: SAX2Parser (55) -
Rake
:: FileList (22) -
Rake
:: PackageTask (22) - Range (50)
- Refinement (3)
- SDBM (11)
- Set (11)
- Socket (22)
- String (11)
- TracePoint (11)
- Vector (22)
-
WEBrick
:: Cookie (22) -
WEBrick
:: HTTPResponse (55) -
WEBrick
:: HTTPServer (22) - WIN32OLE (33)
-
WIN32OLE
_ VARIANT (11)
モジュール
-
CGI
:: QueryExtension (33) -
ERB
:: Util (44) - Enumerable (44)
- GC (11)
- Kernel (88)
- LUSolve (11)
-
MiniTest
:: Assertions (2) - Process (22)
-
Process
:: GID (22) -
Process
:: UID (22) -
RDoc
:: Text (11) -
REXML
:: StreamListener (11) - RbConfig (11)
-
Socket
:: Constants (11) - Syslog (11)
- TSort (106)
-
WEBrick
:: HTTPUtils (11)
オブジェクト
- ENV (11)
キーワード
-
1
. 6 . 8から1 . 8 . 0への変更点(まとめ) (11) - < (11)
- <= (11)
- <=> (11)
- === (22)
- > (11)
- >= (11)
- Htpasswd (11)
-
MCAST
_ INCLUDE (22) - MonitorMixin (11)
-
NEWS for Ruby 2
. 1 . 0 (11) -
NEWS for Ruby 2
. 5 . 0 (7) -
NEWS for Ruby 2
. 6 . 0 (6) -
NEWS for Ruby 2
. 7 . 0 (5) -
NEWS for Ruby 3
. 0 . 0 (4) -
NEWS for Ruby 3
. 1 . 0 (3) - Observable (11)
- Ruby用語集 (11)
- TOPDIR (11)
- WUNTRACED (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)
- cgi (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) - drb (11)
- each (22)
-
each
_ child (22) -
each
_ entry (35) -
each
_ strongly _ connected _ component (21) -
each
_ strongly _ connected _ component _ from (42) -
enable
_ config (22) - entitydecl (11)
- entries (11)
- eql? (11)
-
garbage
_ collect (11) - getrlimit (11)
- h (11)
-
has
_ key? (11) - header? (11)
-
html
_ escape (11) -
import
_ methods (3) - include? (88)
-
include
_ line _ numbers (11) - included (11)
- includes (11)
-
initialize
_ methods _ etc (11) - inspect (11)
-
irb
/ completion (11) - key? (11)
- listen (55)
- lusolve (11)
- markup (11)
- mask (11)
- member? (88)
-
method
_ defined? (6) - methods (11)
-
mime
_ type (11) - mount (11)
-
must
_ include (1) - new (44)
-
package
_ files (11) - parse (11)
-
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) -
rake
/ packagetask (11) - rdoc (11)
-
rdoc
_ include (11) - resolve (11)
-
respond
_ to? (11) -
respond
_ to _ missing? (22) -
rexml
/ parsers / sax2parser (11) -
rexml
/ parsers / streamparser (11) -
ruby 1
. 6 feature (11) -
ruby 1
. 8 . 4 feature (11) -
ruby2
_ keywords (10) -
rubygems
/ commands / install _ command (11) -
singleton
_ methods (11) -
strongly
_ connected _ components (11) - switch (44)
- syscall (11)
-
to
_ s (22) -
try
_ cpp (22) - tsort (22)
-
tsort
_ each (21) - u (11)
-
url
_ encode (11) -
virtual
_ host (11) -
with
_ config (22) - クラス/メソッドの定義 (11)
- 変数と定数 (11)
検索結果
先頭5件
-
Rake
:: FileList # include(*filenames) -> self (21213.0) -
ファイル名のパターンを追加リストに登録します。 配列が与えられた場合、配列の各要素が追加されます。
...ターンを追加リストに登録します。
配列が与えられた場合、配列の各要素が追加されます。
@param filenames 追加するファイル名のパターンを指定します。
例:
file_list.include("*.java", "*.cfg")
file_list.include %w( math.c lib.h *.o )... -
RDoc
:: Options # rdoc _ include -> [String] (15317.0) -
コマンドライン引数の --include オプションで指定したディレクトリを文字列 の配列で返します。
...コマンドライン引数の --include オプションで指定したディレクトリを文字列
の配列で返します。
指定しなかった場合は ['.'] を返します。... -
MiniTest
:: Assertions # assert _ includes(collection , object , message = nil) -> true (15306.0) -
与えられたコレクションにオブジェクトが含まれている場合、検査にパスしたことになります。
...す。
@param collection 任意のコレクションを指定します。
@param object 任意のオブジェクトを指定します。
@param message 検査に失敗した場合に表示するメッセージを指定します。
文字列か Proc を指定します。Proc であ......る場合は Proc#call した
結果を使用します。
@raise MiniTest::Assertion 第一引数のオブジェクトが include? メソッドを持たない場合に発生します。
与えられたコレクションにオブジェクトが含まれて... -
RDoc
:: Options # include _ line _ numbers -> bool (12349.0) -
コマンドライン引数の --include-line-numbers を指定していた場合に true を返します。そうでない場合は false を返します。
...コマンドライン引数の --include-line-numbers を指定していた場合に true
を返します。そうでない場合は false を返します。... -
Module
# prepend _ features(mod) -> self (12306.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... -
rexml
/ parsers / streamparser (12054.0) -
ストリーム式の XML パーサ。
...ストリーム式の XML パーサ。
rexml の XML パーサの中では高速ですが、機能は限定的です。
もう少し高機能なストリーム式パーサが必要な場合は
REXML::Parsers::SAX2Parser を用いてください。
パーサからはコールバックによって......受け取ります。
REXML::StreamListener を include し、
必要なメソッドをオーバーライドしたクラスのオブジェクトを
コールバックオブジェクトとして REXML::Parsers::StreamParser.new
に渡します。
REXML::Parsers::StreamParser#parse を呼び出すと......][ruby]{
require 'rexml/parsers/baseparser'
require 'rexml/parsers/streamparser'
require 'rexml/streamlistener'
xml = <<EOS
<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/css" href="style.css"?>
<!DOCTYPE root SYSTEM "foo" [
<!ELEMENT root (a+)>
<!ELEMENT a>
<!ENTITY bar... -
RDoc
:: Context # includes -> [RDoc :: Include] (9417.0) -
追加された RDoc::Include の配列を返します。
...追加された RDoc::Include の配列を返します。... -
RDoc
:: Context # add _ include(an _ include) -> () (9330.0) -
引数で指定した RDoc::Include オブジェクトを追加します。
...引数で指定した RDoc::Include オブジェクトを追加します。
@param an_include RDoc::Include オブジェクトを指定します。... -
String
# include?(substr) -> bool (9319.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 (9306.0) -
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,......on_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| . . . } -> () (9306.0) -
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,......on_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...