1598件ヒット
[1-100件を表示]
(0.176秒)
ライブラリ
- ビルトイン (475)
- benchmark (11)
-
cgi
/ core (55) - delegate (11)
- fiber (8)
- fiddle (22)
-
json
/ add / bigdecimal (11) -
json
/ add / complex (11) -
json
/ add / date (11) -
json
/ add / date _ time (11) -
json
/ add / exception (11) -
json
/ add / ostruct (11) -
json
/ add / range (11) -
json
/ add / rational (11) -
json
/ add / regexp (11) -
json
/ add / struct (11) -
json
/ add / symbol (11) -
json
/ add / time (11) -
minitest
/ mock (1) -
minitest
/ unit (3) -
net
/ ftp (66) -
net
/ smtp (22) - openssl (22)
- optparse (110)
- pathname (154)
- rake (132)
- ripper (22)
-
rubygems
/ command (44) -
rubygems
/ command _ manager (22) -
rubygems
/ config _ file (11) -
rubygems
/ doc _ manager (11) -
rubygems
/ gem _ runner (11) -
rubygems
/ user _ interaction (99) - set (22)
- un (11)
- win32ole (110)
- zlib (11)
クラス
- BasicObject (44)
-
Benchmark
:: Tms (11) - BigDecimal (11)
- Class (11)
- Complex (11)
- Date (11)
- DateTime (11)
- Delegator (11)
- Enumerator (99)
-
Enumerator
:: Chain (12) -
Enumerator
:: Lazy (65) - Exception (11)
- Fiber (11)
-
Fiddle
:: Closure (11) -
Fiddle
:: Function (11) -
Gem
:: Command (44) -
Gem
:: CommandManager (22) -
Gem
:: ConfigFile (11) -
Gem
:: DocManager (11) -
Gem
:: GemRunner (11) -
Gem
:: StreamUI (11) -
MiniTest
:: Mock (1) -
MiniTest
:: Unit (2) - Module (5)
-
Net
:: FTP (66) -
Net
:: SMTP (22) - NoMethodError (11)
- Object (110)
- OpenStruct (11)
- OptionParser (88)
-
OptionParser
:: ParseError (22) - Pathname (154)
-
Rake
:: Task (33) - Range (11)
- Rational (11)
- Regexp (11)
- Ripper (22)
-
RubyVM
:: InstructionSequence (11) - String (11)
- Struct (11)
- Symbol (11)
- Time (11)
- UnboundMethod (10)
- WIN32OLE (77)
-
WIN32OLE
_ EVENT (33) -
Zlib
:: GzipWriter (11)
モジュール
-
CGI
:: QueryExtension (44) -
CGI
:: QueryExtension :: Value (11) - Enumerable (105)
- FileUtils (11)
-
Gem
:: UserInteraction (88) - Kernel (66)
-
MiniTest
:: Assertions (1) -
OpenSSL
:: Buffering (22) -
Rake
:: TaskManager (33)
キーワード
- % (11)
- [] (11)
-
_ _ send _ _ (22) -
_ getproperty (11) -
_ invoke (11) -
_ setproperty (11) -
add
_ extra _ args (11) - alert (11)
-
alert
_ error (11) -
alert
_ warning (11) - ask (11)
-
ask
_ yes _ no (11) -
assert
_ raises (1) -
bind
_ call (10) - binread (11)
- binwrite (11)
- call (11)
-
choose
_ from _ list (11) -
create
_ rule (11) -
define
_ task (11) - dir (22)
- each (56)
-
each
_ line (22) -
each
_ with _ index (22) -
each
_ with _ object (22) - entries (11)
-
enum
_ for (44) - execute (11)
- expect (1)
- file (11)
-
file
_ create (11) - fnmatch (11)
- fnmatch? (11)
- force (11)
- format (11)
- handler= (11)
- handles? (11)
-
has
_ key? (11) - include? (11)
- initialize (11)
-
instance
_ exec (11) - invoke (33)
- join (11)
- key? (11)
- keys (11)
- list (22)
- ls (22)
-
method
_ missing (33) - mkdir (11)
- mkmf (11)
- multitask (11)
- new (11)
-
next
_ values (11) -
on
_ event (11) -
on
_ event _ with _ outargs (11) - open (22)
- order (44)
- parse (22)
- permute (22)
- print (11)
- printf (22)
-
process
_ args (12) -
progress
_ reporter (11) -
public
_ send (22) - read (11)
- readlines (11)
- ready (11)
- recover (11)
-
resolve
_ args (11) -
respond
_ to _ missing? (11) -
ruby2
_ keywords (5) - rule (11)
- run (23)
-
run
_ rdoc (11) -
safe
_ ln (11) - say (11)
- send (22)
-
set
_ arg _ names (11) - setproperty (22)
- sysopen (11)
- task (11)
-
terminate
_ interaction (11) -
to
_ a (22) -
to
_ enum (44) -
to
_ h (17) -
to
_ json (132) -
to
_ set (22) - transfer (11)
- warn (11)
- warning (11)
-
with
_ index (32) -
with
_ object (22)
検索結果
先頭5件
-
NoMethodError
# args -> [object] (21108.0) -
メソッド呼び出しに使われた引数を配列で返します。
...メソッド呼び出しに使われた引数を配列で返します。
例:
begin
foobar(1,2,3)
rescue NoMethodError
p $!
p $!.name
p $!.args
end
# => #<NoMethodError: undefined method `foobar' for main:Object>
:foobar
[1, 2, 3]... -
Gem
:: ConfigFile # args -> Array (21102.0) -
設定ファイルオブジェクトに与えられたコマンドライン引数のリストを返します。
設定ファイルオブジェクトに与えられたコマンドライン引数のリストを返します。 -
OptionParser
:: ParseError # args -> Array (21102.0) -
エラーのあったオプションの一覧を配列で返します。
...エラーのあったオプションの一覧を配列で返します。
@return エラーのあったオプションの一覧。... -
Fiddle
:: Closure # args -> [Integer] (18202.0) -
引数の型を表す配列を返します。
引数の型を表す配列を返します。 -
WIN32OLE
_ EVENT # on _ event _ with _ outargs(event = nil) {|*args| . . . } -> () (12326.0) -
イベント通知を受けて結果を呼び出し元へ返すブロックを登録します。
...、すべて
のイベントを対象とするブロックの登録となります。
WIN32OLE_EVENT#on_eventと異なり、イベントのブロック変数に戻り値を
設定できます。
@param event イベント名を文字列かシンボルで指定します。イベント名は大文......文字を区別します。省略時にはすべてのイベントが対象となります。
@param args サーバがイベント通知時に指定した引数の配列です。
eventパラメータを省略した場合、第1要素にはイベントのメソッ
ド名が......IN32OLERuntimeError WIN32OLE_EVENT#unadviseによってイベン
トソースと切断済みです。
ie = WIN32OLE.new('InternetExplorer.Application')
ev = WIN32OLE_EVENT.new(ie, 'DWebBrowserEvents2')
ev.on_event('BeforeNavigate2') do |*args|
args[6] = true un... -
MiniTest
:: Unit # process _ args(args = []) -> Hash (12209.0) -
optparse を使ってコマンドライン引数を解析した結果を返します。
...optparse を使ってコマンドライン引数を解析した結果を返します。
@param args コマンドライン引数を指定します。
@see optparse... -
Enumerator
:: Lazy # enum _ for(method = :each , *args) {|*args| block} -> Enumerator :: Lazy (9461.0) -
Object#to_enum と同じですが、Enumerator::Lazy を返します。
...Object#to_enum と同じですが、Enumerator::Lazy を返します。
to_enum は「ブロック付きで呼ぶとループを実行し、ブロックを省略した場合は
Enumerator を返す」ようなメソッドを定義するときによく使われます。
このときに lazy 性が......_enum は
素のEnumerator ではなく Enumerator::Lazy を返すようになっています。
//emlist[例][ruby]{
module Enumerable
# 要素をn回ずつ繰り返すメソッド
# 例:[1,2,3].repeat(2) #=> [1,1,2,2,3,3]
def repeat(n)
raise ArgumentError if n < 0
if block_given?......each do |*val|
n.times { yield *val }
end
else
to_enum(:repeat, n)
end
end
end
r = 1..10
p r.map{|n| n**2}.repeat(2).first(5)
#=> [1, 1, 4, 4, 9]
r = 1..Float::INFINITY
p r.lazy.map{|n| n**2}.repeat(2).first(5)
#=> [1, 1, 4, 4, 9]
# Lazy#to_enum のおかげで... -
Enumerator
:: Lazy # to _ enum(method = :each , *args) {|*args| block} -> Enumerator :: Lazy (9461.0) -
Object#to_enum と同じですが、Enumerator::Lazy を返します。
...Object#to_enum と同じですが、Enumerator::Lazy を返します。
to_enum は「ブロック付きで呼ぶとループを実行し、ブロックを省略した場合は
Enumerator を返す」ようなメソッドを定義するときによく使われます。
このときに lazy 性が......_enum は
素のEnumerator ではなく Enumerator::Lazy を返すようになっています。
//emlist[例][ruby]{
module Enumerable
# 要素をn回ずつ繰り返すメソッド
# 例:[1,2,3].repeat(2) #=> [1,1,2,2,3,3]
def repeat(n)
raise ArgumentError if n < 0
if block_given?......each do |*val|
n.times { yield *val }
end
else
to_enum(:repeat, n)
end
end
end
r = 1..10
p r.map{|n| n**2}.repeat(2).first(5)
#=> [1, 1, 4, 4, 9]
r = 1..Float::INFINITY
p r.lazy.map{|n| n**2}.repeat(2).first(5)
#=> [1, 1, 4, 4, 9]
# Lazy#to_enum のおかげで... -
Enumerator
:: Lazy # enum _ for(method = :each , *args) -> Enumerator :: Lazy (9361.0) -
Object#to_enum と同じですが、Enumerator::Lazy を返します。
...Object#to_enum と同じですが、Enumerator::Lazy を返します。
to_enum は「ブロック付きで呼ぶとループを実行し、ブロックを省略した場合は
Enumerator を返す」ようなメソッドを定義するときによく使われます。
このときに lazy 性が......_enum は
素のEnumerator ではなく Enumerator::Lazy を返すようになっています。
//emlist[例][ruby]{
module Enumerable
# 要素をn回ずつ繰り返すメソッド
# 例:[1,2,3].repeat(2) #=> [1,1,2,2,3,3]
def repeat(n)
raise ArgumentError if n < 0
if block_given?......each do |*val|
n.times { yield *val }
end
else
to_enum(:repeat, n)
end
end
end
r = 1..10
p r.map{|n| n**2}.repeat(2).first(5)
#=> [1, 1, 4, 4, 9]
r = 1..Float::INFINITY
p r.lazy.map{|n| n**2}.repeat(2).first(5)
#=> [1, 1, 4, 4, 9]
# Lazy#to_enum のおかげで... -
Enumerator
:: Lazy # to _ enum(method = :each , *args) -> Enumerator :: Lazy (9361.0) -
Object#to_enum と同じですが、Enumerator::Lazy を返します。
...Object#to_enum と同じですが、Enumerator::Lazy を返します。
to_enum は「ブロック付きで呼ぶとループを実行し、ブロックを省略した場合は
Enumerator を返す」ようなメソッドを定義するときによく使われます。
このときに lazy 性が......_enum は
素のEnumerator ではなく Enumerator::Lazy を返すようになっています。
//emlist[例][ruby]{
module Enumerable
# 要素をn回ずつ繰り返すメソッド
# 例:[1,2,3].repeat(2) #=> [1,1,2,2,3,3]
def repeat(n)
raise ArgumentError if n < 0
if block_given?......each do |*val|
n.times { yield *val }
end
else
to_enum(:repeat, n)
end
end
end
r = 1..10
p r.map{|n| n**2}.repeat(2).first(5)
#=> [1, 1, 4, 4, 9]
r = 1..Float::INFINITY
p r.lazy.map{|n| n**2}.repeat(2).first(5)
#=> [1, 1, 4, 4, 9]
# Lazy#to_enum のおかげで...