96件ヒット
[1-96件を表示]
(0.080秒)
ライブラリ
- ビルトイン (96)
クラス
-
Enumerator
:: Lazy (48) - Object (48)
検索結果
先頭5件
- Object
# enum _ for(method = :each , *args) -> Enumerator - Object
# enum _ for(method = :each , *args) {|*args| . . . } -> Enumerator - Enumerator
:: Lazy # enum _ for(method = :each , *args) -> Enumerator :: Lazy - Enumerator
:: Lazy # enum _ for(method = :each , *args) {|*args| block} -> Enumerator :: Lazy - Object
# to _ enum(method = :each , *args) -> Enumerator
-
Object
# enum _ for(method = :each , *args) -> Enumerator (27109.0) -
Enumerator.new(self, method, *args) を返します。
...文字列かシンボルです。
@param args 呼び出すメソッドに渡される引数です。
//emlist[][ruby]{
str = "xyz"
enum = str.enum_for(:each_byte)
p(a = enum.map{|b| '%02x' % b }) #=> ["78", "79", "7a"]
# protects an array from being modified
a = [1, 2, 3]
p(a.to_enum) #=> #<Enume... -
Object
# enum _ for(method = :each , *args) {|*args| . . . } -> Enumerator (27109.0) -
Enumerator.new(self, method, *args) を返します。
...文字列かシンボルです。
@param args 呼び出すメソッドに渡される引数です。
//emlist[][ruby]{
str = "xyz"
enum = str.enum_for(:each_byte)
p(a = enum.map{|b| '%02x' % b }) #=> ["78", "79", "7a"]
# protects an array from being modified
a = [1, 2, 3]
p(a.to_enum) #=> #<Enume... -
Enumerator
:: Lazy # enum _ for(method = :each , *args) -> Enumerator :: Lazy (18119.0) -
Object#to_enum と同じですが、Enumerator::Lazy を返します。
...
Object#to_enum と同じですが、Enumerator::Lazy を返します。
to_enum は「ブロック付きで呼ぶとループを実行し、ブロックを省略した場合は
Enumerator を返す」ようなメソッドを定義するときによく使われます。
このときに lazy 性が... -
Enumerator
:: Lazy # enum _ for(method = :each , *args) {|*args| block} -> Enumerator :: Lazy (18119.0) -
Object#to_enum と同じですが、Enumerator::Lazy を返します。
...
Object#to_enum と同じですが、Enumerator::Lazy を返します。
to_enum は「ブロック付きで呼ぶとループを実行し、ブロックを省略した場合は
Enumerator を返す」ようなメソッドを定義するときによく使われます。
このときに lazy 性が... -
Object
# to _ enum(method = :each , *args) -> Enumerator (12009.0) -
Enumerator.new(self, method, *args) を返します。
...文字列かシンボルです。
@param args 呼び出すメソッドに渡される引数です。
//emlist[][ruby]{
str = "xyz"
enum = str.enum_for(:each_byte)
p(a = enum.map{|b| '%02x' % b }) #=> ["78", "79", "7a"]
# protects an array from being modified
a = [1, 2, 3]
p(a.to_enum) #=> #<Enume... -
Object
# to _ enum(method = :each , *args) {|*args| . . . } -> Enumerator (12009.0) -
Enumerator.new(self, method, *args) を返します。
...文字列かシンボルです。
@param args 呼び出すメソッドに渡される引数です。
//emlist[][ruby]{
str = "xyz"
enum = str.enum_for(:each_byte)
p(a = enum.map{|b| '%02x' % b }) #=> ["78", "79", "7a"]
# protects an array from being modified
a = [1, 2, 3]
p(a.to_enum) #=> #<Enume... -
Enumerator
:: Lazy # to _ enum(method = :each , *args) -> Enumerator :: Lazy (3019.0) -
Object#to_enum と同じですが、Enumerator::Lazy を返します。
...
Object#to_enum と同じですが、Enumerator::Lazy を返します。
to_enum は「ブロック付きで呼ぶとループを実行し、ブロックを省略した場合は
Enumerator を返す」ようなメソッドを定義するときによく使われます。
このときに lazy 性が... -
Enumerator
:: Lazy # to _ enum(method = :each , *args) {|*args| block} -> Enumerator :: Lazy (3019.0) -
Object#to_enum と同じですが、Enumerator::Lazy を返します。
...
Object#to_enum と同じですが、Enumerator::Lazy を返します。
to_enum は「ブロック付きで呼ぶとループを実行し、ブロックを省略した場合は
Enumerator を返す」ようなメソッドを定義するときによく使われます。
このときに lazy 性が...