635件ヒット
[601-635件を表示]
(0.108秒)
クラス
- BasicObject (48)
- Class (24)
- Delegator (12)
- Enumerator (108)
-
Enumerator
:: Chain (14) -
Enumerator
:: Lazy (60) - Fiber (12)
-
Fiddle
:: Closure :: BlockCaller (12) - Method (44)
- Module (24)
- NoMethodError (12)
- Object (121)
- Pathname (24)
- String (12)
- UnboundMethod (12)
- WIN32OLE (48)
モジュール
- Enumerable (48)
キーワード
- % (12)
- === (8)
- [] (12)
-
_ _ send _ _ (24) -
_ getproperty (12) -
_ invoke (12) - allocate (12)
-
bind
_ call (12) - call (36)
-
class
_ exec (12) - each (62)
-
each
_ with _ object (24) - entries (12)
-
enum
_ for (48) - force (12)
- initialize (12)
-
instance
_ exec (12) - invoke (12)
-
method
_ missing (36) -
module
_ exec (12) -
must
_ raise (1) - new (12)
-
next
_ values (12) - open (24)
-
public
_ send (24) -
respond
_ to _ missing? (12) - send (24)
-
to
_ a (12) -
to
_ enum (48) - transfer (12)
-
with
_ index (24) -
with
_ object (24)
検索結果
先頭3件
-
Pathname
# open(mode = & # 39;r& # 39; , perm = 0666) -> File (18.0) -
File.open(self.to_s, *args, &block) と同じです。
...File.open(self.to_s, *args, &block) と同じです。
@see File.open... -
Enumerator
# next _ values -> Array (13.0) -
「次」のオブジェクトを配列で返します。
...の違いを][ruby]{
o = Object.new
def o.each
yield
yield 1
yield 1, 2
yield nil
yield [1, 2]
end
e = o.to_enum
p e.next_values
p e.next_values
p e.next_values
p e.next_values
p e.next_values
e = o.to_enum
p e.next
p e.next
p e.next
p e.next
p e.next
## yield args next_values... -
Enumerator
# with _ index(offset = 0) -> Enumerator (3.0) -
生成時のパラメータに従って、要素にインデックスを添えて繰り返します。 インデックスは offset から始まります。
生成時のパラメータに従って、要素にインデックスを添えて繰り返します。
インデックスは offset から始まります。
ブロックを指定した場合の戻り値は生成時に指定したレシーバ自身です。
//emlist[例][ruby]{
str = "xyz"
enum = Enumerator.new {|y| str.each_byte {|b| y << b }}
enum.with_index {|byte, idx| p [byte, idx] }
# => [120, 0]
# [121, 1]
# [122, 2]
require "stringi...