2561件ヒット
[2501-2561件を表示]
(0.103秒)
別のキーワード
ライブラリ
- ビルトイン (1692)
-
bigdecimal
/ util (7) - delegate (12)
- e2mmap (30)
- etc (12)
-
fiddle
/ import (24) - forwardable (48)
- getoptlong (24)
- json (60)
-
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) - openssl (36)
- optparse (108)
- pp (12)
- rake (36)
-
rdoc
/ context (60) -
rdoc
/ parser (12) -
rdoc
/ stats (12) -
rdoc
/ top _ level (24) - resolv (24)
-
rexml
/ document (24) -
rubygems
/ remote _ fetcher (12) - set (18)
- tsort (58)
- uri (24)
-
webrick
/ httpservlet / abstract (12) -
webrick
/ httputils (36) -
win32
/ registry (12) - win32ole (12)
クラス
-
ARGF
. class (912) - BasicObject (84)
- BigDecimal (12)
- Class (12)
- Complex (12)
- Date (12)
- DateTime (12)
-
Enumerator
:: Lazy (6) -
Etc
:: Passwd (12) - Exception (12)
- FalseClass (24)
-
Gem
:: RemoteFetcher (12) - GetoptLong (24)
- Hash (24)
- IO (12)
- Integer (12)
- Method (118)
- Module (144)
- NilClass (31)
- Object (192)
-
OpenSSL
:: ASN1 :: ASN1Data (24) - OptionParser (108)
- PP (12)
- Proc (14)
-
RDoc
:: Context (60) -
RDoc
:: Parser (12) -
RDoc
:: Stats (12) -
RDoc
:: TopLevel (24) -
REXML
:: CData (24) - Range (12)
- Rational (12)
- Regexp (24)
-
Resolv
:: DNS (24) - String (12)
- Struct (12)
- Thread (12)
-
Thread
:: Backtrace :: Location (48) - Time (12)
- TrueClass (24)
-
URI
:: Generic (24) - UnboundMethod (24)
-
WEBrick
:: HTTPServlet :: AbstractServlet (12) -
WEBrick
:: HTTPUtils :: FormData (36) -
WIN32OLE
_ TYPE (12) -
Win32
:: Registry :: PredefinedKey (12)
モジュール
- Enumerable (24)
- Exception2MessageMapper (30)
-
Fiddle
:: Importer (24) - Forwardable (48)
-
JSON
:: Generator :: GeneratorMethods :: FalseClass (12) -
JSON
:: Generator :: GeneratorMethods :: NilClass (12) -
JSON
:: Generator :: GeneratorMethods :: Object (12) -
JSON
:: Generator :: GeneratorMethods :: String (12) -
JSON
:: Generator :: GeneratorMethods :: TrueClass (12) - Kernel (12)
-
Rake
:: TaskManager (24) - TSort (58)
キーワード
- << (14)
- <=> (12)
- === (8)
- >> (14)
- DelegateClass (12)
- Fail (6)
- Raise (6)
- [] (24)
-
_ _ send _ _ (24) -
_ dump (12) -
absolute
_ path (12) -
add
_ class (12) -
add
_ class _ or _ module (24) -
add
_ module (12) - argv (12)
- arity (24)
- backtrace (12)
-
base
_ label (12) - binmode (12)
- binmode? (12)
- bytes (14)
- call (24)
- chars (14)
-
class
_ exec (12) -
class
_ variable _ get (12) - classes (12)
- close (12)
- closed? (12)
- codepoints (14)
- component (12)
-
const
_ get (12) -
const
_ missing (12) -
const
_ source _ location (12) -
def
_ delegator (12) -
def
_ exception (6) -
def
_ instance _ delegator (12) -
default
_ port (12) -
define
_ singleton _ method (24) -
define
_ task (12) - delegate (12)
-
do
_ GET (12) - each (48)
-
each
_ byte (24) -
each
_ char (24) -
each
_ classmodule (12) -
each
_ codepoint (24) -
each
_ line (48) -
each
_ strongly _ connected _ component (23) -
each
_ strongly _ connected _ component _ from (23) - eager (6)
- eof (12)
- eof? (12)
- error (12)
- error? (12)
-
external
_ encoding (12) - fail (6)
- file (12)
- filename (24)
- fileno (12)
-
find
_ local _ symbol (12) -
fixed
_ encoding? (12) - getbyte (12)
- getc (12)
- getresource (12)
- getresources (12)
- gets (36)
- initialize (12)
-
inplace
_ mode (12) -
inplace
_ mode= (12) - inspect (84)
-
instance
_ delegate (12) -
instance
_ exec (12) -
instance
_ variable _ get (12) - intern (12)
-
internal
_ encoding (12) - lineno (12)
- lineno= (12)
- lines (42)
- merge (24)
-
method
_ missing (12) -
module
_ exec (12) - name (24)
- new (12)
-
num
_ classes (12) -
object
_ group (12) -
ole
_ type (12) - on (108)
-
original
_ name (24) -
parse
_ files _ matching (12) - path (12)
- pathmap (12)
- pos (12)
- pos= (12)
- print (12)
- printf (12)
- private (12)
- putc (12)
- puts (12)
- read (12)
-
read
_ nonblock (12) - readbyte (24)
- readchar (12)
- readline (36)
- readlines (36)
- readpartial (12)
- request (12)
-
respond
_ to _ missing? (12) - rewind (12)
- seek (12)
- send (24)
-
set
_ encoding (36) -
singleton
_ class (12) -
singleton
_ class? (12) -
singleton
_ method (12) -
singleton
_ method _ added (12) -
singleton
_ method _ removed (12) -
singleton
_ method _ undefined (12) -
singleton
_ methods (12) - skip (12)
-
source
_ location (12) -
strongly
_ connected _ components (12) - struct (12)
-
tag
_ class (12) -
tag
_ class= (12) - tell (12)
-
to
_ a (36) -
to
_ bn (12) -
to
_ d (7) -
to
_ i (24) -
to
_ int (12) -
to
_ io (12) -
to
_ json (168) -
to
_ json _ raw _ object (12) -
to
_ regexp (12) -
to
_ s (108) -
to
_ set (24) -
to
_ str (12) -
to
_ write _ io (12) - uclass (12)
- union (12)
- value (12)
- write (12)
検索結果
先頭5件
-
OptionParser
# on(short , long , *rest) {|v| . . . } -> self (102.0) -
オプションを取り扱うためのブロックを自身に登録します。 ブロックはコマンドラインのパース時に、オプションが指定されていれば呼ばれます。
...やハッシュに含まれない場合、例外
OptionParser::InvalidArgument が OptionParser#parse 実行時
に発生します。
@param short ショートオプションを表す文字列を指定します。
@param long ロングオプションを表す文字列を指定します。
@param... -
OptionParser
# on(short , long , desc = "") {|v| . . . } -> self (102.0) -
オプションを取り扱うためのブロックを自身に登録します。 ブロックはコマンドラインのパース時に、オプションが指定されていれば呼ばれます。
...せん
on("-xSTRING"){|val| ...} # スペース無しで任意の文字列を入れても同様
//}
オプションの引数が必須でない場合は [ ] をつけて、
//emlist{
on("-x [OPTIONAL]"){|val| ...}
//}
となります。
@param long ロングオプショ......list{
on("--long"){|boolean| ...} # オプションが引数をとらない場合。boolean には true が渡されます。
on("--long MANDATORY"){|val| ...} # オプションが引数をとる場合。" MANDATORY" の部分は任意の文字列で構いません
on("--long=MANDATORY"){|val......ます
# on("--longSTRING"){|val| ...} # ロングオプションでは、ショートオプションの場合と違って空白が必ず必要です。このようにすると --longSTRING という名前の引数をとらないオプションになります。
on("--long [OPTIONAL]"){|val| ...... -
OptionParser
# on(short , long , pat = / . * / , desc = "") {|v| . . . } -> self (102.0) -
オプションを取り扱うためのブロックを自身に登録します。 ブロックはコマンドラインのパース時に、オプションが指定されていれば呼ばれます。
...lidArgument が parse 実行時に投げられます。
opts.on("--username VALUE", /[a-zA-Z0-9_]+/){|name| ...}
# ruby command --username=ruby_user
# ruby command --username=ruby.user #=> Error
@param short ショートオプションを表す文字列を指定します。
@param long ロ... -
Method
# <<(callable) -> Proc (19.0) -
self と引数を合成した Proc を返します。
...オブジェクト。
//emlist[例][ruby]{
def f(x)
x * x
end
def g(x)
x + x
end
# (3 + 3) * (3 + 3)
p (method(:f) << method(:g)).call(3) # => 36
//}
//emlist[call を定義したオブジェクトを渡す例][ruby]{
class WordScanner
def self.call(str)
str.scan(/\w+/)
end
end
File... -
Method
# >>(callable) -> Proc (19.0) -
self と引数を合成した Proc を返します。
...オブジェクト。
//emlist[例][ruby]{
def f(x)
x * x
end
def g(x)
x + x
end
# (3 * 3) + (3 * 3)
p (method(:f) >> method(:g)).call(3) # => 18
//}
//emlist[call を定義したオブジェクトを渡す例][ruby]{
class WordScanner
def self.call(str)
str.scan(/\w+/)
end
end
File... -
Proc
# <<(callable) -> Proc (19.0) -
self と引数を合成した Proc を返します。
...持ったオブジェクト。
//emlist[例][ruby]{
f = proc { |x| x * x }
g = proc { |x| x + x }
# (3 + 3) * (3 + 3)
p (f << g).call(3) # => 36
//}
//emlist[call を定義したオブジェクトを渡す例][ruby]{
class WordScanner
def self.call(str)
str.scan(/\w+/)
end
end
File.write... -
Proc
# >>(callable) -> Proc (19.0) -
self と引数を合成した Proc を返します。
...持ったオブジェクト。
//emlist[例][ruby]{
f = proc { |x| x * x }
g = proc { |x| x + x }
# (3 * 3) + (3 * 3)
p (f >> g).call(3) # => 18
//}
//emlist[call を定義したオブジェクトを渡す例][ruby]{
class WordScanner
def self.call(str)
str.scan(/\w+/)
end
end
File.write...