別のキーワード
ライブラリ
- ビルトイン (1549)
-
bigdecimal
/ util (12) -
cgi
/ core (12) - csv (99)
- date (4)
- etc (12)
- fiddle (12)
-
fiddle
/ import (24) -
irb
/ context (12) - json (192)
-
json
/ add / bigdecimal (12) -
json
/ add / complex (12) -
json
/ add / date (12) -
json
/ add / date _ time (12) -
json
/ add / exception (12) -
json
/ add / range (12) -
json
/ add / rational (12) -
json
/ add / regexp (12) -
json
/ add / struct (12) -
json
/ add / time (12) - matrix (48)
- mkmf (12)
- monitor (6)
-
net
/ http (276) - optparse (504)
- pathname (12)
- prime (36)
- rake (48)
-
rake
/ testtask (12) -
rexml
/ streamlistener (12) -
ripper
/ filter (12) - rubygems (12)
-
rubygems
/ requirement (48) -
rubygems
/ specification (84) -
rubygems
/ version (12) - set (18)
- socket (36)
- strscan (12)
- thread (12)
- timeout (8)
- tsort (23)
- win32ole (12)
クラス
- Addrinfo (24)
- Array (182)
- BasicObject (36)
- BigDecimal (12)
- CGI (12)
- CSV (72)
-
CSV
:: Row (3) - Complex (48)
- Data (3)
- Date (14)
- DateTime (14)
-
Encoding
:: Converter (108) - Exception (68)
- Fiber (6)
-
Fiddle
:: Function (12) - File (12)
- Float (24)
-
Gem
:: Requirement (48) -
Gem
:: Specification (84) -
Gem
:: Version (12) - IO (132)
-
IRB
:: Context (12) - Integer (36)
-
JSON
:: State (72) - MatchData (2)
- Matrix (36)
-
Matrix
:: LUPDecomposition (12) - Module (180)
- Monitor (6)
-
Net
:: HTTP (216) -
Net
:: HTTPResponse (24) - NilClass (24)
- Numeric (12)
- Object (108)
- OptionParser (492)
- Pathname (12)
- Prime (24)
-
Rake
:: Application (24) -
Rake
:: InvocationChain (24) -
Rake
:: TestTask (12) - Range (12)
- Rational (216)
- Regexp (12)
-
Ripper
:: Filter (12) - Set (24)
- Socket (12)
- String (192)
- StringScanner (12)
- Struct (18)
- Thread (66)
-
Thread
:: Queue (36) -
Thread
:: SizedQueue (36) - Time (26)
-
WIN32OLE
_ EVENT (12)
モジュール
- Enumerable (104)
-
Fiddle
:: Importer (24) -
JSON
:: Generator :: GeneratorMethods :: Array (12) -
JSON
:: Generator :: GeneratorMethods :: FalseClass (12) -
JSON
:: Generator :: GeneratorMethods :: Float (12) -
JSON
:: Generator :: GeneratorMethods :: Hash (12) -
JSON
:: Generator :: GeneratorMethods :: Integer (12) -
JSON
:: Generator :: GeneratorMethods :: NilClass (12) -
JSON
:: Generator :: GeneratorMethods :: Object (12) -
JSON
:: Generator :: GeneratorMethods :: String (12) -
JSON
:: Generator :: GeneratorMethods :: TrueClass (12) - Kernel (44)
-
Net
:: HTTPHeader (36) -
OptionParser
:: Arguable (12) -
REXML
:: StreamListener (12) - TSort (23)
キーワード
- * (12)
- ** (12)
- + (12)
- - (12)
-
/ (12) - <=> (24)
- == (24)
- === (24)
- =~ (12)
- JSON (12)
-
abort
_ on _ exception (12) -
abort
_ on _ exception= (12) - accept (12)
-
add
_ dependency (12) -
add
_ development _ dependency (12) -
add
_ loader (12) -
add
_ runtime _ dependency (12) - append (12)
-
arg
_ config (12) - autoload (12)
- autoload? (12)
-
backtrace
_ locations (24) - bind (12)
- byteindex (3)
- call (12)
- capitalize (9)
- capitalize! (9)
- ceil (12)
- cleanpath (12)
- clone (12)
- coerce (12)
-
cofactor
_ expansion (12) - combination (24)
- component (12)
- concat (66)
- configure (12)
- connect (12)
-
connect
_ from (24) -
const
_ defined? (12) -
const
_ get (12) -
const
_ missing (12) -
const
_ set (12) -
const
_ source _ location (12) - constants (12)
-
content
_ length= (12) -
content
_ type= (12) - convert (48)
-
deconstruct
_ keys (20) -
default
_ argv (12) -
default
_ argv= (12) -
define
_ singleton _ method (24) -
deprecate
_ constant (12) - deq (24)
- detect (24)
- downcase (9)
- downcase! (9)
- dup (12)
- each (60)
-
each
_ cons (24) -
each
_ line (60) -
each
_ strongly _ connected _ component _ from (23) - encode (36)
- encode! (24)
- entitydecl (12)
- environment (12)
- exception (24)
- fdiv (12)
- fetch (12)
- find (24)
- flock (12)
- floor (12)
- gem (12)
- get (24)
- get2 (24)
- getopts (36)
- handler= (12)
- head (12)
- head2 (24)
- header (12)
-
header
_ convert (36) - indent= (12)
-
insert
_ output (12) -
int
_ from _ prime _ division (12) - intersection (18)
-
laplace
_ expansion (12) - load (12)
- member? (12)
- merge (12)
-
module
_ function (36) - none? (15)
-
object
_ nl= (12) -
on
_ head (12) -
on
_ tail (12) - one? (45)
- order (48)
- order! (24)
- parse (36)
- parse! (12)
-
parse
_ csv (12) - partition (12)
- pathconf (12)
- permutation (24)
- permute (24)
- permute! (12)
- platform= (12)
- pop (24)
- post (24)
- post2 (24)
-
prime
_ division (24) -
primitive
_ convert (48) -
private
_ constant (12) -
program
_ name= (12) -
prompt
_ mode= (12) -
public
_ constant (12) - putback (24)
- quo (24)
- raise (6)
- rationalize (108)
-
read
_ body (24) - reject (12)
-
remove
_ const (12) -
repeated
_ combination (24) -
repeated
_ permutation (24) - replacement= (12)
-
report
_ on _ exception (9) -
report
_ on _ exception= (9) -
request
_ get (24) -
request
_ head (24) -
request
_ post (24) -
required
_ ruby _ version= (12) -
required
_ rubygems _ version= (12) -
respond
_ to? (12) -
respond
_ to _ missing? (12) - round (12)
- rpartition (12)
-
ruby
_ opts= (12) -
rubygems
_ version= (12) -
satisfied
_ by? (12) -
send
_ request (12) - separator (12)
-
set
_ backtrace (12) -
set
_ content _ type (12) - shift (24)
-
singleton
_ method (12) -
singleton
_ method _ added (12) -
singleton
_ method _ removed (12) -
singleton
_ method _ undefined (12) -
singleton
_ methods (12) - solve (12)
- space= (12)
-
space
_ before= (12) - strftime (12)
- summarize (24)
-
summary
_ indent= (12) -
summary
_ width= (12) - swapcase (9)
- swapcase! (9)
- timeout (8)
-
to
_ csv (12) -
to
_ d (12) -
to
_ i (12) -
to
_ json (228) -
to
_ r (12) - truncate (12)
-
tty
_ output= (12) - union (31)
- upcase (9)
- upcase! (9)
-
wait
_ for _ cond (6)
検索結果
先頭5件
- OptionParser
# on(short , long , desc = "") {|v| . . . } -> self - TSort
# each _ strongly _ connected _ component _ from(node , id _ map={} , stack=[]) -> Enumerator - TSort
# each _ strongly _ connected _ component _ from(node , id _ map={} , stack=[]) {|nodes| . . . } -> () - OptionParser
# on(long , pat = / . * / , desc = "") {|v| . . . } -> self - OptionParser
# on(short , long , pat = / . * / , desc = "") {|v| . . . } -> self
-
OptionParser
# on(short , long , desc = "") {|v| . . . } -> self (24440.0) -
オプションを取り扱うためのブロックを自身に登録します。 ブロックはコマンドラインのパース時に、オプションが指定されていれば呼ばれます。
...ます。
opts.on("-r", "--require LIBRARY"){|lib| ...}
これは以下と同値です。
opts.on("-r LIBRARY"){|lib| ...}
opts.on("--require LIBRARY"){|lib| ...}
複数の異なるオプションに同じブロックを一度に登録することもできます。
opt.on('-v', '-vv'){|boo......lean| ...}
opt.on('--require X', '--need', '--dependon'){|x| ... }
@param short ショートオプションを表す文字列を指定します。
そのオプションが引数をとらない場合は、
//emlist{
on("-x"){|boolean| ...}
//}
となります。コマ......合 true を引数と
してブロックを評価します。
ショートオプションが引数をとる場合は、以下のようになります。
//emlist{
on("-x MANDATORY"){|val| ...} # " MANDATORY" の部分は任意の文字列で構いません
on("-xSTRING"... -
TSort
# each _ strongly _ connected _ component _ from(node , id _ map={} , stack=[]) -> Enumerator (24413.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,......&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| . . . } -> () (24413.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,......&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... -
OptionParser
# on(long , pat = / . * / , desc = "") {|v| . . . } -> self (24400.0) -
オプションを取り扱うためのブロックを自身に登録します。 ブロックはコマンドラインのパース時に、オプションが指定されていれば呼ばれます。
...れます。
pat にはオプションの引数に許すパターンを表す正規表現で与えます。
コマンドに与えられた引数がパターンにマッチしない場合、
例外 OptionParser::InvalidArgument が parse 実行時に投げられます。
opts.on("--username VALUE......0-9_]+/){|name| ...}
# ruby command --username=ruby_user
# ruby command --username=ruby.user #=> Error
@param short ショートオプションを表す文字列を指定します。
@param long ロングオプションを表す文字列を指定します。
@param pat オプションの引......数に許すパターンを表す正規表現で指定します。
@param desc オプションの説明を文字列で与えます。サマリに表示されます。... -
OptionParser
# on(short , long , pat = / . * / , desc = "") {|v| . . . } -> self (24400.0) -
オプションを取り扱うためのブロックを自身に登録します。 ブロックはコマンドラインのパース時に、オプションが指定されていれば呼ばれます。
...れます。
pat にはオプションの引数に許すパターンを表す正規表現で与えます。
コマンドに与えられた引数がパターンにマッチしない場合、
例外 OptionParser::InvalidArgument が parse 実行時に投げられます。
opts.on("--username VALUE......0-9_]+/){|name| ...}
# ruby command --username=ruby_user
# ruby command --username=ruby.user #=> Error
@param short ショートオプションを表す文字列を指定します。
@param long ロングオプションを表す文字列を指定します。
@param pat オプションの引......数に許すパターンを表す正規表現で指定します。
@param desc オプションの説明を文字列で与えます。サマリに表示されます。... -
OptionParser
# on(long , *rest) {|v| . . . } -> self (24395.0) -
オプションを取り扱うためのブロックを自身に登録します。 ブロックはコマンドラインのパース時に、オプションが指定されていれば呼ばれます。
...ない場合、例外
OptionParser::InvalidArgument が OptionParser#parse 実行時
に発生します。
@param short ショートオプションを表す文字列を指定します。
@param long ロングオプションを表す文字列を指定します。
@param rest 可能な引数を列......説明と見なします。
//emlist[][ruby]{
opts.on("--protocol VALUE", [:http, :ftp, :https]){|w|
p w
}
# ruby command --protocol=http #=> :http
opts.on("-c", "--charset VALUE", {"jis" => "iso-2022-jp", "sjis" => "shift_jis"}){|w|
p w
}
# ruby command --charset=jis #=> "iso-2022-jp"
//}... -
OptionParser
# on(long , klass = String , desc = "") {|v| . . . } -> self (24395.0) -
オプションを取り扱うためのブロックを自身に登録します。 ブロックはコマンドラインのパース時に、オプションが指定されていれば呼ばれます。
...な引数クラス」を参照して下さい。
OptionParser.accept や OptionParser#accept によって、受け付け
るクラスを増やすことができます。登録されていないクラスが指定された
場合、例外 ArgumentError を投げます。
また、登録されたクラ......ptionParser::InvalidArgument を投げます。
オプションの引数は accept で登録したブロックで klass のインスタンス
に変換されてから、ブロックに渡されます。
opts.on("-w", "--width N", Integer){|w|
p w.class #=> Integer
}
# ruby command --widt......h=32
opts.on("-o", "--overwrite VALUE", TrueClass){|boolean| ...}
# ruby command --overwrite yes
@param short ショートオプションを表す文字列を指定します。
@param long ロングオプションを表す文字列を指定します。
@param klass オプションの引数... -
OptionParser
# on(short , long , *rest) {|v| . . . } -> self (24395.0) -
オプションを取り扱うためのブロックを自身に登録します。 ブロックはコマンドラインのパース時に、オプションが指定されていれば呼ばれます。
...ない場合、例外
OptionParser::InvalidArgument が OptionParser#parse 実行時
に発生します。
@param short ショートオプションを表す文字列を指定します。
@param long ロングオプションを表す文字列を指定します。
@param rest 可能な引数を列......説明と見なします。
//emlist[][ruby]{
opts.on("--protocol VALUE", [:http, :ftp, :https]){|w|
p w
}
# ruby command --protocol=http #=> :http
opts.on("-c", "--charset VALUE", {"jis" => "iso-2022-jp", "sjis" => "shift_jis"}){|w|
p w
}
# ruby command --charset=jis #=> "iso-2022-jp"
//}... -
OptionParser
# on(short , long , klass = String , desc = "") {|v| . . . } -> self (24395.0) -
オプションを取り扱うためのブロックを自身に登録します。 ブロックはコマンドラインのパース時に、オプションが指定されていれば呼ばれます。
...な引数クラス」を参照して下さい。
OptionParser.accept や OptionParser#accept によって、受け付け
るクラスを増やすことができます。登録されていないクラスが指定された
場合、例外 ArgumentError を投げます。
また、登録されたクラ......ptionParser::InvalidArgument を投げます。
オプションの引数は accept で登録したブロックで klass のインスタンス
に変換されてから、ブロックに渡されます。
opts.on("-w", "--width N", Integer){|w|
p w.class #=> Integer
}
# ruby command --widt......h=32
opts.on("-o", "--overwrite VALUE", TrueClass){|boolean| ...}
# ruby command --overwrite yes
@param short ショートオプションを表す文字列を指定します。
@param long ロングオプションを表す文字列を指定します。
@param klass オプションの引数...