5916件ヒット
[1-100件を表示]
(0.103秒)
ライブラリ
- ビルトイン (623)
- bigdecimal (12)
-
cgi
/ core (132) -
cgi
/ html (132) -
cgi
/ session (12) - csv (186)
- date (12)
- delegate (12)
- drb (60)
-
drb
/ extserv (12) -
drb
/ timeridconv (24) -
irb
/ context (288) -
irb
/ ext / history (24) -
irb
/ ext / save-history (36) -
irb
/ ext / tracer (12) - json (12)
-
json
/ add / struct (12) - kconv (12)
- logger (5)
- matrix (185)
-
minitest
/ spec (1) - mkmf (24)
- monitor (78)
-
net
/ http (96) -
net
/ imap (44) - openssl (540)
- optparse (432)
- prime (72)
- psych (48)
-
racc
/ parser (12) - rake (108)
-
rake
/ packagetask (36) -
rdoc
/ code _ object (12) -
rdoc
/ context (72) -
rdoc
/ markdown (24) -
rdoc
/ markup (12) -
rdoc
/ markup / formatter (12) -
rdoc
/ top _ level (24) -
rexml
/ document (120) -
rexml
/ parsers / pullparser (24) -
rexml
/ sax2listener (12) -
rexml
/ streamlistener (12) -
ripper
/ filter (12) - rss (348)
- rubygems (72)
-
rubygems
/ command (36) -
rubygems
/ commands / unpack _ command (12) -
rubygems
/ commands / update _ command (12) -
rubygems
/ config _ file (60) -
rubygems
/ dependency (24) -
rubygems
/ dependency _ installer (24) -
rubygems
/ dependency _ list (12) -
rubygems
/ indexer (12) -
rubygems
/ package / tar _ header (12) -
rubygems
/ platform (24) -
rubygems
/ requirement (36) -
rubygems
/ server (72) -
rubygems
/ source _ index (24) -
rubygems
/ specification (192) -
rubygems
/ user _ interaction (12) -
rubygems
/ version (108) -
rubygems
/ version _ option (24) - scanf (6)
-
shell
/ process-controller (18) - socket (144)
- thread (6)
-
webrick
/ httprequest (12) -
webrick
/ httpresponse (132) -
webrick
/ httpserver (12) -
webrick
/ httpservlet / abstract (84) -
webrick
/ httpservlet / cgihandler (24) -
webrick
/ httpservlet / erbhandler (24) -
webrick
/ httpservlet / filehandler (84) -
webrick
/ httpservlet / prochandler (36) -
webrick
/ httpversion (72) -
webrick
/ server (12) -
webrick
/ ssl (12) -
win32
/ registry (24) - win32ole (132)
クラス
- Array (12)
- BasicObject (12)
- BasicSocket (48)
- BigDecimal (12)
-
CGI
:: Session (12) - CSV (132)
-
CSV
:: Row (6) -
CSV
:: Table (24) -
DRb
:: DRbIdConv (24) -
DRb
:: DRbServer (36) -
DRb
:: ExtServ (12) -
DRb
:: TimerIdConv (24) - Date (12)
- Delegator (12)
-
Encoding
:: Converter (204) -
Encoding
:: InvalidByteSequenceError (48) -
Encoding
:: UndefinedConversionError (60) -
Gem
:: Command (36) -
Gem
:: Commands :: UnpackCommand (12) -
Gem
:: Commands :: UpdateCommand (12) -
Gem
:: ConfigFile (60) -
Gem
:: Dependency (24) -
Gem
:: DependencyInstaller (24) -
Gem
:: DependencyList (12) -
Gem
:: Indexer (12) -
Gem
:: LoadError (24) -
Gem
:: Package :: TarHeader (12) -
Gem
:: Platform (24) -
Gem
:: Requirement (36) -
Gem
:: Server (72) -
Gem
:: SourceIndex (24) -
Gem
:: Specification (192) -
Gem
:: StreamUI :: VerboseProgressReporter (12) -
Gem
:: Version (108) -
IRB
:: Context (360) - Integer (12)
-
JSON
:: State (12) -
Logger
:: Application (5) - Matrix (24)
-
Matrix
:: EigenvalueDecomposition (120) -
Matrix
:: LUPDecomposition (24) - Module (37)
- Monitor (6)
-
MonitorMixin
:: ConditionVariable (60) -
Net
:: HTTP (48) -
Net
:: HTTPResponse (24) -
Net
:: IMAP (44) - Object (12)
-
OpenSSL
:: ASN1 :: Constructive (36) -
OpenSSL
:: ASN1 :: ObjectId (12) -
OpenSSL
:: Config (60) -
OpenSSL
:: OCSP :: BasicResponse (48) -
OpenSSL
:: PKey :: EC :: Group (24) -
OpenSSL
:: PKey :: EC :: Point (12) -
OpenSSL
:: SSL :: SSLContext (144) -
OpenSSL
:: X509 :: CRL (24) -
OpenSSL
:: X509 :: Certificate (24) -
OpenSSL
:: X509 :: Extension (24) -
OpenSSL
:: X509 :: ExtensionFactory (24) -
OpenSSL
:: X509 :: Request (24) -
OpenSSL
:: X509 :: Revoked (36) -
OpenSSL
:: X509 :: StoreContext (48) - OptionParser (420)
-
OptionParser
:: ParseError (12) - Prime (24)
-
Prime
:: TrialDivisionGenerator (36) -
Psych
:: Emitter (12) -
Psych
:: Handler (12) -
Psych
:: Nodes :: Document (24) -
RDoc
:: CodeObject (12) -
RDoc
:: Context (72) -
RDoc
:: Markdown (24) -
RDoc
:: Markup (12) -
RDoc
:: Markup :: Formatter (12) -
RDoc
:: Options (312) -
RDoc
:: TopLevel (24) -
REXML
:: Document (12) -
REXML
:: Element (12) -
REXML
:: Instruction (24) -
REXML
:: NotationDecl (24) -
REXML
:: Parsers :: PullEvent (24) -
REXML
:: XMLDecl (48) -
RSS
:: ImageFaviconModel :: ImageFavicon (96) -
RSS
:: Maker :: RSSBase (36) -
RSS
:: RDF (48) -
RSS
:: RDF :: Channel :: ImageFavicon (96) -
RSS
:: Rss (48) -
Racc
:: Parser (12) -
Rake
:: Application (24) -
Rake
:: InvocationChain (36) -
Rake
:: InvocationChain :: EmptyInvocationChain (36) -
Rake
:: PackageTask (36) -
Rake
:: Task (12) - Rational (42)
-
Ripper
:: Filter (12) -
RubyVM
:: InstructionSequence (130) -
Scanf
:: FormatSpecifier (6) -
Shell
:: ProcessController (18) - Socket (48)
-
Socket
:: Option (12) - String (24)
- Struct (18)
- TCPServer (12)
-
Thread
:: ConditionVariable (36) - Time (12)
- TracePoint (7)
- UDPSocket (12)
- UNIXServer (12)
- Vector (17)
-
WEBrick
:: Cookie (24) -
WEBrick
:: GenericServer (24) -
WEBrick
:: HTTPRequest (12) -
WEBrick
:: HTTPResponse (132) -
WEBrick
:: HTTPServer (12) -
WEBrick
:: HTTPServlet :: AbstractServlet (84) -
WEBrick
:: HTTPServlet :: CGIHandler (24) -
WEBrick
:: HTTPServlet :: DefaultFileHandler (36) -
WEBrick
:: HTTPServlet :: ERBHandler (24) -
WEBrick
:: HTTPServlet :: FileHandler (48) -
WEBrick
:: HTTPServlet :: ProcHandler (36) -
WEBrick
:: HTTPVersion (72) -
WIN32OLE
_ EVENT (60) -
WIN32OLE
_ TYPE (36) -
WIN32OLE
_ TYPELIB (36) -
Win32
:: Registry (24)
モジュール
-
CGI
:: HtmlExtension (132) -
CGI
:: QueryExtension (60) -
CGI
:: QueryExtension :: Value (72) - Enumerable (24)
-
Gem
:: QuickLoader (36) -
Gem
:: VersionOption (24) - Kernel (36)
- MonitorMixin (12)
-
Net
:: HTTPHeader (24) -
REXML
:: SAX2Listener (12) -
REXML
:: StreamListener (12) -
RSS
:: ImageFaviconModel (24)
キーワード
- <=> (24)
- === (12)
- =~ (12)
- Marshal (12)
- [] (12)
- []= (48)
- abbreviate (12)
- about (24)
- about= (24)
-
absolute
_ path (12) -
accept
_ nonblock (24) -
active
_ job? (6) -
active
_ jobs (6) -
active
_ jobs _ exist? (6) -
add
_ class _ or _ module (12) -
add
_ dependency (12) -
add
_ development _ dependency (12) -
add
_ extension (12) -
add
_ nonce (12) -
add
_ option (12) -
add
_ platform _ option (12) -
add
_ runtime _ dependency (12) -
add
_ status (12) -
add
_ value (12) -
add
_ version _ option (12) -
ap
_ name= (12) - append (24)
-
auto
_ indent _ mode= (12) -
back
_ trace _ limit= (12) -
base
_ label (12) - body= (12)
-
break
_ on _ newline= (12) - broadcast (24)
- bump (12)
-
calculate
_ integers _ for _ gem _ version (12) -
canonical
_ each (12) - checkbox (12)
-
checkbox
_ group (12) - clone (5)
- component (12)
- config (24)
- connect (12)
-
connect
_ nonblock (12) -
const
_ set (12) - content= (12)
-
content
_ type= (12) - context= (12)
- conversion (6)
- convert (84)
- converters (12)
-
convertible
_ int (24) - convpath (12)
-
coverage
_ report (12) -
coverage
_ report= (12) - create (12)
-
create
_ ext (12) -
create
_ extension (12) - d (12)
- date (24)
- date= (24)
-
debug
_ level (12) -
debug
_ level= (12) - deconstruct (3)
-
deconstruct
_ keys (3) -
default
_ argv (12) -
default
_ argv= (12) -
default
_ event _ sources (12) -
definition
_ lists= (12) -
destination
_ encoding (36) -
destination
_ encoding _ name (24) -
development
_ dependencies (12) - disasm (12)
- disassemble (12)
-
do
_ DELETE (12) -
do
_ GET (72) -
do
_ HEAD (12) -
do
_ OPTIONS (24) -
do
_ POST (60) -
do
_ PUT (12) -
do
_ rubygems _ update (12) - done (12)
-
dry
_ run= (12) - each (48)
-
each
_ capitalized (12) -
each
_ cons (24) - echo= (12)
- eigen (12)
- eigensystem (12)
-
eigenvalue
_ matrix (12) - eigenvalues (12)
-
eigenvector
_ matrix (12) -
eigenvector
_ matrix _ inv (12) - eigenvectors (12)
- encoding= (12)
- environment (12)
- eql? (12)
- error (12)
- error= (12)
-
error
_ bytes (12) -
error
_ char (12) - eval (12)
-
eval
_ history (12) -
eval
_ history= (12) - evaluate (12)
- exclude= (12)
- extensions (12)
- extensions= (12)
- fdiv (12)
-
field
_ size _ limit (12) -
find
_ local _ symbol (12) -
find
_ name (12) -
find
_ spec _ by _ name _ and _ version (12) - finish (12)
- first (12)
-
first
_ lineno (12) - flags= (12)
- flock (12)
-
force
_ output= (12) - formatter= (12)
- front (24)
- gem (12)
- generator= (12)
-
get
_ instance (12) -
get
_ path (12) -
get
_ value (12) - getopts (12)
- getsockopt (12)
- handler= (12)
-
header
_ convert (36) -
header
_ converters (12) - help (12)
- hidden (12)
-
http
_ version (36) -
hyperlink
_ all= (12) -
ignore
_ eof= (12) -
ignore
_ sigint= (12) -
image
_ favicon (12) -
image
_ favicon= (12) -
image
_ size (24) -
image
_ size= (24) -
incomplete
_ input? (12) - indentation= (12)
-
infect
_ with _ assertions (1) - init (12)
-
init
_ save _ history (12) -
insert
_ output (12) - inspect (24)
- install (12)
- instruction? (12)
-
instruction
_ sequence (7) -
int
_ from _ prime _ division (12) - investigation (12)
- io= (12)
- ipv6only! (12)
- irb= (12)
-
irb
_ name= (12) -
irb
_ path= (12) - kconv (12)
-
keep
_ alive (12) -
keep
_ alive= (12) -
keep
_ alive? (12) -
keep
_ alive _ timeout= (12) - label (12)
- last (12)
-
last
_ error (12) -
last
_ value (12) -
latest
_ specs (12) - level (12)
- level= (1)
-
line
_ numbers= (12) - load (12)
- log (2)
- log= (1)
-
long
_ name (12) -
main
_ page= (12) - major (12)
- major= (12)
-
major
_ version (24) -
make
_ partial _ content (12) -
mark
_ version (12) - markup= (12)
-
marshal
_ dump (12) -
marshal
_ load (12) - member? (24)
- minor (12)
- minor= (12)
-
minor
_ version (24) - mount (12)
- move (22)
- negative? (9)
-
new
_ cond (18) - next (12)
-
not
_ modified? (12) - notationdecl? (12)
-
off
_ event (12) -
on
_ curve? (12) -
on
_ default (12) -
on
_ error (12) -
on
_ event (12) -
on
_ event _ with _ outargs (12) -
ongoing
_ visibility= (12) -
op
_ dir= (12) - open (12)
-
option
_ parser= (12) - order (48)
- order! (24)
-
page
_ dir= (12) - parse (24)
- parse! (12)
-
parse
_ csv (12) -
password
_ field (12) - path (12)
- permute (24)
- permute! (12)
- pipe= (12)
- pivots (12)
-
point
_ conversion _ form (12) -
point
_ conversion _ form= (12) - positive? (9)
- prerelease? (12)
-
prev
_ month (12) -
prime
_ division (24) -
primitive
_ convert (48) -
primitive
_ errinfo (12) -
private
_ constant (12) -
prompt
_ c= (12) -
prompt
_ i= (12) -
prompt
_ n= (12) -
prompt
_ s= (12) - public= (12)
-
push
_ all _ highest _ version _ gems _ on _ load _ path (12) -
push
_ gem _ version _ on _ load _ path (12) - putback (24)
- quick (12)
-
radio
_ group (12) -
really
_ verbose (12) -
reason
_ phrase= (12) -
record
_ location (12) - recover (12)
-
recv
_ nonblock (12) -
recvfrom
_ nonblock (24) - recvmsg (12)
-
recvmsg
_ nonblock (12) - release (12)
-
remove
_ by _ name (12) -
remove
_ const (12) -
remove
_ option (12) -
remove
_ response _ handler (12) -
remove
_ spec (12) - replacement (12)
- replacement= (12)
-
request
_ http _ version (12) -
request
_ http _ version= (12) -
required
_ ruby _ version (12) -
required
_ ruby _ version= (12) -
required
_ rubygems _ version (12) -
required
_ rubygems _ version= (12) - reset (12)
-
respond
_ to _ missing? (24) -
return
_ format= (12) - rewind (12)
- root (12)
- root= (12)
-
rss
_ version (36) -
rss
_ version= (24) -
rubygems
_ version (12) -
rubygems
_ version= (12) -
satisfied
_ by? (12) -
save
_ exception _ mode (12) -
save
_ history (12) -
save
_ history= (12) -
scrolling
_ list (12) - section= (12)
-
server
_ name (12) -
server
_ port (12) -
server
_ protocol (12) -
server
_ software (12) -
servername
_ cb (12) -
servername
_ cb= (12) - service (24)
-
session
_ remove (12) -
session
_ remove _ cb (12) -
session
_ remove _ cb= (12) -
set
_ last _ value (12) -
set
_ log (1) -
set
_ params (12) -
set
_ visibility _ for (12) -
show
_ all= (12) -
show
_ lookup _ failure (12) - signal (24)
-
singleton
_ method _ removed (12) - size (24)
- size= (24)
- solve (12)
-
source
_ encoding (24) -
source
_ encoding _ name (12) -
specification
_ version (12) -
specification
_ version= (12) - specs (12)
-
ssl
_ context (12) -
ssl
_ version (12) -
ssl
_ version= (24) - standalone= (12)
-
start
_ document (12) - starttls (12)
-
static
_ path= (12) - status (12)
- strftime (12)
- submit (12)
- succ (12)
- system= (12)
- tagging (12)
- tagging= (12)
- target= (12)
-
template
_ dir= (12) -
text
_ field (12) -
to
_ a (36) -
to
_ ary (24) -
to
_ binary (10) -
to
_ csv (24) -
to
_ id (24) -
to
_ json (12) -
to
_ obj (24) -
to
_ s (72) -
top
_ level (12) -
top
_ level _ tasks (12) - toplevel (12)
-
uid
_ move (10) - unadvise (12)
-
unconverted
_ fields? (12) -
unmatched
_ alias _ lists= (12) -
use
_ tracer= (12) -
v
_ inv (12) - validate (12)
- value (48)
- value= (12)
- values (6)
- ver (12)
- verbose (24)
- verbose= (36)
- verbose? (12)
- verbosity (12)
- verbosity= (12)
- verify (24)
-
verify
_ callback (12) -
verify
_ callback= (12) -
verify
_ depth (12) -
verify
_ depth= (12) -
verify
_ mode (12) -
verify
_ mode= (12) - version (204)
- version= (156)
-
version
_ requirement (12) -
version
_ requirement= (12) -
version
_ requirements (12) -
version
_ requirements= (12) - visibility (24)
- visibility= (12)
- wait (24)
-
wait
_ until (12) -
wait
_ while (12) - webcvs (12)
- workspace= (12)
- xmldecl (36)
- yaml (12)
検索結果
先頭5件
- Gem
:: VersionOption # add _ version _ option(task = command , *wrap) - Encoding
:: Converter # primitive _ convert(source _ buffer , destination _ buffer , destination _ byteoffset , destination _ bytesize , options) -> Symbol - Encoding
:: Converter # primitive _ convert(source _ buffer , destination _ buffer , destination _ byteoffset , destination _ bytesize) -> Symbol - Encoding
:: Converter # primitive _ convert(source _ buffer , destination _ buffer , destination _ byteoffset) -> Symbol - Encoding
:: Converter # primitive _ convert(source _ buffer , destination _ buffer) -> Symbol
-
Gem
:: VersionOption # add _ version _ option(task = command , *wrap) (27301.0) -
option parser に対して --version オプションを追加します。
...option parser に対して --version オプションを追加します。
@param task コマンド名を指定します。デフォルト値はインクルードされる側のクラスで指定されます。
@param wrap Gem::Command#add_option に渡すその他のオプションを指定しま... -
Encoding
:: Converter # primitive _ convert(source _ buffer , destination _ buffer , destination _ byteoffset , destination _ bytesize , options) -> Symbol (24701.0) -
エンコーディング変換のためのメソッドの中で、もっとも細かな扱いが可能なメソッドです。
...coding::Converter#primitive_convert が唯一の方法になります。
@param source_buffer 変換元文字列のバッファ
@param destination_buffer 変換先文字列を格納するバッファ
@param destination_byteoffset 変換先バッファでのオフセット
@param destination_bytesiz......ram options 変換の詳細を指定する定数やハッシュ
@return 変換結果を表す Symbol
options には以下が指定できます。
: hash form
:partial_input => true # source buffer may be part of larger source
:after_output => true # stop conversion after o......efore input
: integer form
Encoding::Converter::PARTIAL_INPUT
Encoding::Converter::AFTER_OUTPUT
戻り値は以下のうちのどれかです。
* :invalid_byte_sequence
* :incomplete_input
* :undefined_conversion
* :after_output
* :destination_buffer_full
* :source_buffer_empty... -
Encoding
:: Converter # primitive _ convert(source _ buffer , destination _ buffer , destination _ byteoffset , destination _ bytesize) -> Symbol (24601.0) -
エンコーディング変換のためのメソッドの中で、もっとも細かな扱いが可能なメソッドです。
...coding::Converter#primitive_convert が唯一の方法になります。
@param source_buffer 変換元文字列のバッファ
@param destination_buffer 変換先文字列を格納するバッファ
@param destination_byteoffset 変換先バッファでのオフセット
@param destination_bytesiz......ram options 変換の詳細を指定する定数やハッシュ
@return 変換結果を表す Symbol
options には以下が指定できます。
: hash form
:partial_input => true # source buffer may be part of larger source
:after_output => true # stop conversion after o......efore input
: integer form
Encoding::Converter::PARTIAL_INPUT
Encoding::Converter::AFTER_OUTPUT
戻り値は以下のうちのどれかです。
* :invalid_byte_sequence
* :incomplete_input
* :undefined_conversion
* :after_output
* :destination_buffer_full
* :source_buffer_empty... -
Encoding
:: Converter # primitive _ convert(source _ buffer , destination _ buffer , destination _ byteoffset) -> Symbol (24501.0) -
エンコーディング変換のためのメソッドの中で、もっとも細かな扱いが可能なメソッドです。
...coding::Converter#primitive_convert が唯一の方法になります。
@param source_buffer 変換元文字列のバッファ
@param destination_buffer 変換先文字列を格納するバッファ
@param destination_byteoffset 変換先バッファでのオフセット
@param destination_bytesiz......ram options 変換の詳細を指定する定数やハッシュ
@return 変換結果を表す Symbol
options には以下が指定できます。
: hash form
:partial_input => true # source buffer may be part of larger source
:after_output => true # stop conversion after o......efore input
: integer form
Encoding::Converter::PARTIAL_INPUT
Encoding::Converter::AFTER_OUTPUT
戻り値は以下のうちのどれかです。
* :invalid_byte_sequence
* :incomplete_input
* :undefined_conversion
* :after_output
* :destination_buffer_full
* :source_buffer_empty... -
Encoding
:: Converter # primitive _ convert(source _ buffer , destination _ buffer) -> Symbol (24401.0) -
エンコーディング変換のためのメソッドの中で、もっとも細かな扱いが可能なメソッドです。
...coding::Converter#primitive_convert が唯一の方法になります。
@param source_buffer 変換元文字列のバッファ
@param destination_buffer 変換先文字列を格納するバッファ
@param destination_byteoffset 変換先バッファでのオフセット
@param destination_bytesiz......ram options 変換の詳細を指定する定数やハッシュ
@return 変換結果を表す Symbol
options には以下が指定できます。
: hash form
:partial_input => true # source buffer may be part of larger source
:after_output => true # stop conversion after o......efore input
: integer form
Encoding::Converter::PARTIAL_INPUT
Encoding::Converter::AFTER_OUTPUT
戻り値は以下のうちのどれかです。
* :invalid_byte_sequence
* :incomplete_input
* :undefined_conversion
* :after_output
* :destination_buffer_full
* :source_buffer_empty... -
Gem
:: Specification # specification _ version=(version) (21501.0) -
この Gem パッケージに用いられている gemspec のバージョンをセットします。
...この Gem パッケージに用いられている gemspec のバージョンをセットします。
@param version gemspec のバージョンを指定します。
@see Gem::Specification::SPECIFICATION_VERSION_HISTORY... -
OptionParser
# on(long , desc = "") {|v| . . . } -> self (21420.0) -
オプションを取り扱うためのブロックを自身に登録します。 ブロックはコマンドラインのパース時に、オプションが指定されていれば呼ばれます。
...。
opts.on("-r", "--require LIBRARY"){|lib| ...}
これは以下と同値です。
opts.on("-r LIBRARY"){|lib| ...}
opts.on("--require LIBRARY"){|lib| ...}
複数の異なるオプションに同じブロックを一度に登録することもできます。
opt.on('-v', '-vv'){|boolean|.........}
opt.on('--require X', '--need', '--dependon'){|x| ... }
@param short ショートオプションを表す文字列を指定します。
そのオプションが引数をとらない場合は、
//emlist{
on("-x"){|boolean| ...}
//}
となります。コマンド......list{
on("-x MANDATORY"){|val| ...} # " MANDATORY" の部分は任意の文字列で構いません
on("-xSTRING"){|val| ...} # スペース無しで任意の文字列を入れても同様
//}
オプションの引数が必須でない場合は [ ] をつけて、
//emlist{
on("-x... -
OptionParser
# on(short , long , desc = "") {|v| . . . } -> self (21420.0) -
オプションを取り扱うためのブロックを自身に登録します。 ブロックはコマンドラインのパース時に、オプションが指定されていれば呼ばれます。
...。
opts.on("-r", "--require LIBRARY"){|lib| ...}
これは以下と同値です。
opts.on("-r LIBRARY"){|lib| ...}
opts.on("--require LIBRARY"){|lib| ...}
複数の異なるオプションに同じブロックを一度に登録することもできます。
opt.on('-v', '-vv'){|boolean|.........}
opt.on('--require X', '--need', '--dependon'){|x| ... }
@param short ショートオプションを表す文字列を指定します。
そのオプションが引数をとらない場合は、
//emlist{
on("-x"){|boolean| ...}
//}
となります。コマンド......list{
on("-x MANDATORY"){|val| ...} # " MANDATORY" の部分は任意の文字列で構いません
on("-xSTRING"){|val| ...} # スペース無しで任意の文字列を入れても同様
//}
オプションの引数が必須でない場合は [ ] をつけて、
//emlist{
on("-x... -
OptionParser
# on(long , *rest) {|v| . . . } -> self (21355.0) -
オプションを取り扱うためのブロックを自身に登録します。 ブロックはコマンドラインのパース時に、オプションが指定されていれば呼ばれます。
...が配列やハッシュに含まれない場合、例外
OptionParser::InvalidArgument が OptionParser#parse 実行時
に発生します。
@param short ショートオプションを表す文字列を指定します。
@param long ロングオプションを表す文字列を指定します。......表示されるオプションの説明と見なします。
//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 --char...