るりまサーチ (Ruby 3.0)

最速Rubyリファレンスマニュアル検索!
254件ヒット [1-100件を表示] (0.138秒)

別のキーワード

  1. _builtin to_a
  2. matrix to_a
  3. to_a
  4. dbm to_a
  5. argf.class to_a

ライブラリ

モジュール

キーワード

検索結果

<< 1 2 3 > >>

Benchmark::Job#item(label = "") { ... } -> self (63607.0)

与えられたラベルとブロックをジョブリストに登録します。

与えられたラベルとブロックをジョブリストに登録します。

@param label ラベル

Benchmark::Report#item(label = "", *fmt) { ... } -> Benchmark::Tms (63607.0)

ラベルと与えられたブロックの実行時間を標準出力に出力します。

ラベルと与えられたブロックの実行時間を標準出力に出力します。

出力のフォーマットは Benchmark::Tms#format が行います。

@param label ラベル
@param fmt 結果に出力したいオブジェクト

@see Benchmark::Tms#format

RSS::Rss::Channel#item (63310.0)

@todo

@todo

RSS::ImageItemModel#image_item (54610.0)

@todo

@todo

RSS::ImageItemModel#image_item= (54610.0)

@todo

@todo

絞り込み条件を変える

RSS::ImageItemModel::ImageItem#image_width (54304.0)

@todo

@todo

RSS::ImageItemModel::ImageItem#image_width= (54304.0)

@todo

@todo

RSS::ImageItemModel::ImageItem#about (45304.0)

@todo

@todo

RSS::ImageItemModel::ImageItem#about= (45304.0)

@todo

@todo

RSS::ImageItemModel::ImageItem#date (45304.0)

@todo

@todo

絞り込み条件を変える

RSS::ImageItemModel::ImageItem#date= (45304.0)

@todo

@todo

RSS::ImageItemModel::ImageItem#image_height (45304.0)

@todo

@todo

RSS::ImageItemModel::ImageItem#image_height= (45304.0)

@todo

@todo

RSS::ImageItemModel::ImageItem#width (45004.0)

@todo

@todo

RSS::ImageItemModel::ImageItem#width= (45004.0)

@todo

@todo

絞り込み条件を変える

RSS::Maker::ItemsBase#new_item (36451.0)

@todo 新しくitemを作成し,返します.作成された itemはitemリストの最後に追加されています.

@todo
新しくitemを作成し,返します.作成された
itemはitemリストの最後に追加されています.

RSS::Maker::ItemsBase::ItemBase#pubDate (36352.0)

@todo item.dateの別名です.

@todo
item.dateの別名です.

RSS::Maker::ItemsBase::ItemBase#pubDate=() (36352.0)

@todo item.date=の別名です.

@todo
item.date=の別名です.

RSS::Maker::RSS20::Items::Item::Categories#new_category (36322.0)

@todo 新しくcategoryを作成し,返します.作成された categoryはcategoryリストの最後 に追加されています.

@todo
新しくcategoryを作成し,返します.作成された
categoryはcategoryリストの最後
に追加されています.

item.categories.new_categoryが作成する
categoryは
maker.channel.categories.new_categoryが作成する
categoryと同じAPIを持ちます.

RSS::Maker::ItemsBase::ItemBase#author (36304.0)

@todo

@todo

絞り込み条件を変える

RSS::Maker::ItemsBase::ItemBase#author=() (36304.0)

@todo

@todo

RSS::Maker::ItemsBase::ItemBase#categories (36304.0)

@todo

@todo

RSS::Maker::ItemsBase::ItemBase#date (36304.0)

@todo

@todo

RSS::Maker::ItemsBase::ItemBase#date=() (36304.0)

@todo

@todo

RSS::Maker::RSS20::Items::Item::Guid#isPermaLink (36304.0)

@todo

@todo

絞り込み条件を変える

RSS::Maker::RSS20::Items::Item::Guid#isPermaLink=() (36304.0)

@todo

@todo

RSS::ImageItemModel::ImageItem#height (36004.0)

@todo

@todo

RSS::ImageItemModel::ImageItem#height= (36004.0)

@todo

@todo

RSS::ImageItemModel::ImageItem#resource (36004.0)

@todo

@todo

RSS::ImageItemModel::ImageItem#resource= (36004.0)

@todo

@todo

絞り込み条件を変える

Enumerator::Lazy#collect_concat {|item| ... } -> Enumerator::Lazy (27964.0)

ブロックの実行結果をひとつに繋げたものに対してイテレートするような Enumerator::Lazy のインスタンスを返します。

ブロックの実行結果をひとつに繋げたものに対してイテレートするような
Enumerator::Lazy のインスタンスを返します。

//emlist[][ruby]{
["foo", "bar"].lazy.flat_map {|i| i.each_char.lazy}.force
#=> ["f", "o", "o", "b", "a", "r"]
//}

ブロックの返した値 x は、以下の場合にのみ分解され、連結されます。

* x が配列であるか、to_ary メソッドを持つとき
* x が each および force メソッドを持つ (例:Enumerator::Lazy) ...

Enumerator::Lazy#flat_map {|item| ... } -> Enumerator::Lazy (27964.0)

ブロックの実行結果をひとつに繋げたものに対してイテレートするような Enumerator::Lazy のインスタンスを返します。

ブロックの実行結果をひとつに繋げたものに対してイテレートするような
Enumerator::Lazy のインスタンスを返します。

//emlist[][ruby]{
["foo", "bar"].lazy.flat_map {|i| i.each_char.lazy}.force
#=> ["f", "o", "o", "b", "a", "r"]
//}

ブロックの返した値 x は、以下の場合にのみ分解され、連結されます。

* x が配列であるか、to_ary メソッドを持つとき
* x が each および force メソッドを持つ (例:Enumerator::Lazy) ...

RSS::Maker::ItemsBase#max_size=() (27352.0)

@todo 出力するitemの数の最大値を設定します.

@todo
出力するitemの数の最大値を設定します.

RSS::Maker::RSSBase#items (27352.0)

@todo item要素を生成するオブジェクトを管理するオブジェクトを 返します.

@todo
item要素を生成するオブジェクトを管理するオブジェクトを
返します.

RSS::Rss::Channel#item= (27310.0)

@todo

@todo

絞り込み条件を変える

RSS::Maker::ItemsBase#max_size (27304.0)

@todo 現在のmax_sizeの値を取得します.デフォルトでは -1になっています.

@todo
現在のmax_sizeの値を取得します.デフォルトでは
-1になっています.

RSS::RDF::Channel#items (27304.0)

@todo

@todo

RSS::RDF::Channel#items= (27304.0)

@todo

@todo

RSS::RDF::Item#about (27304.0)

@todo

@todo

RSS::RDF::Item#about= (27304.0)

@todo

@todo

絞り込み条件を変える

RSS::RDF::Item#date (27304.0)

@todo

@todo

RSS::RDF::Item#date= (27304.0)

@todo

@todo

RSS::Rss::Channel#items (27304.0)

@todo

@todo

RSS::Rss::Channel::Item#author (27304.0)

@todo

@todo

RSS::Rss::Channel::Item#author= (27304.0)

@todo

@todo

絞り込み条件を変える

RSS::Rss::Channel::Item#categories (27304.0)

@todo

@todo

RSS::Rss::Channel::Item#category (27304.0)

@todo

@todo

RSS::Rss::Channel::Item#category= (27304.0)

@todo

@todo

RSS::Rss::Channel::Item#date (27304.0)

@todo

@todo

RSS::Rss::Channel::Item#date= (27304.0)

@todo

@todo

絞り込み条件を変える

RSS::Rss::Channel::Item#pubDate (27304.0)

@todo

@todo

RSS::Rss::Channel::Item#pubDate= (27304.0)

@todo

@todo

RSS::Rss::Channel::Item::Category#domain (27304.0)

@todo

@todo

RSS::Rss::Channel::Item::Category#domain= (27304.0)

@todo

@todo

RSS::Rss::Channel::Item::Guid#isPermaLink (27304.0)

@todo

@todo

* http://purl.org/dc/elements/1.1/

絞り込み条件を変える

RSS::Maker::ItemsBase::ItemBase#comments (27004.0)

@todo

@todo

RSS::Maker::ItemsBase::ItemBase#comments=() (27004.0)

@todo

@todo

RSS::Maker::ItemsBase::ItemBase#description (27004.0)

@todo

@todo

RSS::Maker::ItemsBase::ItemBase#description=() (27004.0)

@todo

@todo

RSS::Maker::ItemsBase::ItemBase#enclosure (27004.0)

@todo

@todo

絞り込み条件を変える

RSS::Maker::ItemsBase::ItemBase#guid (27004.0)

@todo

@todo

RSS::Maker::ItemsBase::ItemBase#link (27004.0)

@todo

@todo

RSS::Maker::ItemsBase::ItemBase#link=() (27004.0)

@todo

@todo

RSS::Maker::ItemsBase::ItemBase#source (27004.0)

@todo

@todo

RSS::Maker::ItemsBase::ItemBase#title (27004.0)

@todo

@todo

絞り込み条件を変える

RSS::Maker::ItemsBase::ItemBase#title=() (27004.0)

@todo

@todo

RSS::Maker::RSS20::Items::Item::Enclosure#length (27004.0)

@todo

@todo

RSS::Maker::RSS20::Items::Item::Enclosure#length=() (27004.0)

@todo

@todo

RSS::Maker::RSS20::Items::Item::Enclosure#type (27004.0)

@todo

@todo

RSS::Maker::RSS20::Items::Item::Enclosure#type=() (27004.0)

@todo

@todo

絞り込み条件を変える

RSS::Maker::RSS20::Items::Item::Enclosure#url (27004.0)

@todo

@todo

RSS::Maker::RSS20::Items::Item::Enclosure#url=() (27004.0)

@todo

@todo

RSS::Maker::RSS20::Items::Item::Guid#content (27004.0)

@todo

@todo

RSS::Maker::RSS20::Items::Item::Guid#content=() (27004.0)

@todo

@todo

RSS::Maker::RSS20::Items::Item::Source#content (27004.0)

@todo

@todo

絞り込み条件を変える

RSS::Maker::RSS20::Items::Item::Source#content=() (27004.0)

@todo

@todo

RSS::Maker::RSS20::Items::Item::Source#url (27004.0)

@todo

@todo

RSS::Maker::RSS20::Items::Item::Source#url=() (27004.0)

@todo

@todo

Net::IMAP#getacl(mailbox) -> [Net::IMAP::MailboxACLItem] (18904.0)

GETACL コマンドを送り、メールボックスの ACL(Access Control List) を取得します。

GETACL コマンドを送り、メールボックスの
ACL(Access Control List) を取得します。

Net::IMAP#getacl で指定したメールボックスに
対し何らかの権限を持つ各ユーザに対して
Net::IMAP::MailboxACLItem オブジェクトが
作られ、その配列が返されます。

GETACL コマンドは 2086 で定義されています。
詳しくはそちらを参照してください。

@param mailbox メールボックス名(文字列)
@see Net::IMAP::MailboxACLItem

Enumerable#max_by {|item| ... } -> object | nil (18826.0)

各要素を順番にブロックに渡して実行し、 その評価結果を <=> で比較して、 最大であった値に対応する元の要素、もしくは最大の n 要素が降順で入った配列を返します。

各要素を順番にブロックに渡して実行し、
その評価結果を <=> で比較して、
最大であった値に対応する元の要素、もしくは最大の n 要素が降順で入った配列を返します。

引数を指定しない形式では要素が存在しなければ nil を返します。
引数を指定する形式では、空の配列を返します。
該当する要素が複数存在する場合、どの要素を返すかは不定です。

Enumerable#max と Enumerable#max_by の
違いは Enumerable#sort と Enumerable#sort_by の違いと同じです。

ブロックを省略した場合は Enumerator を返します。

@par...

絞り込み条件を変える

Enumerable#max_by(n) {|item| ... } -> Array (18826.0)

各要素を順番にブロックに渡して実行し、 その評価結果を <=> で比較して、 最大であった値に対応する元の要素、もしくは最大の n 要素が降順で入った配列を返します。

各要素を順番にブロックに渡して実行し、
その評価結果を <=> で比較して、
最大であった値に対応する元の要素、もしくは最大の n 要素が降順で入った配列を返します。

引数を指定しない形式では要素が存在しなければ nil を返します。
引数を指定する形式では、空の配列を返します。
該当する要素が複数存在する場合、どの要素を返すかは不定です。

Enumerable#max と Enumerable#max_by の
違いは Enumerable#sort と Enumerable#sort_by の違いと同じです。

ブロックを省略した場合は Enumerator を返します。

@par...

Array#reverse_each {|item| ... } -> self (18679.0)

各要素に対して逆順にブロックを評価します。

各要素に対して逆順にブロックを評価します。

ブロックが与えられなかった場合は、自身と reverse_each から生成した
Enumerator オブジェクトを返します。

//emlist[例][ruby]{
a = [ "a", "b", "c" ]
a.reverse_each {|x| print x, " " }
# => c b a
//}

@see Array#each

Enumerator::Lazy#take_while {|item| ... } -> Enumerator::Lazy (18679.0)

Enumerable#take_while と同じですが、配列ではなくEnumerator::Lazy を返します。

Enumerable#take_while と同じですが、配列ではなくEnumerator::Lazy を返します。

//emlist[例][ruby]{
1.step.lazy.zip(('a'..'z').cycle).take_while { |e| e.first < 100_000 }
# => #<Enumerator::Lazy: #<Enumerator::Lazy: #<Enumerator::Lazy: #<Enumerator: 1:step>>:zip(#<Enumerator: "a".."z":cycle>)>:take_while>

1.step.lazy....

Array#all? {|item| ... } -> bool (18625.0)

すべての要素が真である場合に true を返します。 偽である要素があれば、ただちに false を返します。

...数か?
p [5, 6, 7].all? {|v| v > 0 } # => true
p [5, -1, 7].all? {|v| v > 0 } # => false
p [].all? {|v| v > 0 } # => true
p %w[ant bear cat].all?(/t/) # => false
p [1, 2, 3].all?(Integer) # => true
p [1, 2, 3.0].all?(Integer) # => false
//}

@see Enumerable#all?...

Array#any? {|item| ... } -> bool (18625.0)

すべての要素が偽である場合に false を返します。 真である要素があれば、ただちに true を返します。

すべての要素が偽である場合に false を返します。
真である要素があれば、ただちに true を返します。

ブロックを伴う場合は、各要素に対してブロックを評価し、すべての結果
が偽である場合に false を返します。ブロックが真を返した時点
で、ただちに true を返します。

要素の数が 0 である配列に対しては false を返します。

@param pattern ブロックの代わりに各要素に対して pattern === item を評価します。

//emlist[例][ruby]{
p [1, 2, 3].any? {|v| v > 3 } # => false
p...

絞り込み条件を変える

Enumerable#all? {|item| ... } -> bool (18625.0)

すべての要素が真である場合に true を返します。 偽である要素があれば、ただちに false を返します。

...nt', 'bear', 'cat'].all?(/t/) # => false
p (1..4).all?(Integer) # => true
p [1, 2, 3].all?(Integer) # => true
p [1, 2, 3.0].all?(Integer) # => false
# Hashは[k, v]のペアなのでArray/Hash === [k, v]で評価
p({foo: 0, bar: 1}.all?(Array)) # => tr...

Enumerable#any? {|item| ... } -> bool (18625.0)

すべての要素が偽である場合に false を返します。 真である要素があれば、ただちに true を返します。

すべての要素が偽である場合に false を返します。
真である要素があれば、ただちに true を返します。

ブロックを伴う場合は、各要素に対してブロックを評価し、すべての結果
が偽である場合に false を返します。ブロックが真を返した時点
で、ただちに true を返します。

自身に要素が存在しない場合は false を返します。

@param pattern ブロックの代わりに各要素に対して pattern === item を評価します。

//emlist[例][ruby]{
require 'set'
p Set[1, 2, 3].any? {|v| v > 3 } ...

Enumerable#find_all {|item| ... } -> [object] (18613.0)

各要素に対してブロックを評価した値が真であった要素を全て含む配列を 返します。真になる要素がひとつもなかった場合は空の配列を返します。

各要素に対してブロックを評価した値が真であった要素を全て含む配列を
返します。真になる要素がひとつもなかった場合は空の配列を返します。

ブロックを省略した場合は Enumerator を返します。

//emlist[例][ruby]{
(1..10).find_all # => #<Enumerator: 1..10:find_all>
(1..10).find_all { |i| i % 3 == 0 } # => [3, 6, 9]

[1,2,3,4,5].select # => #<E...

Enumerator::Lazy#find_all {|item| ... } -> Enumerator::Lazy (18613.0)

Enumerable#select と同じですが、配列ではなくEnumerator::Lazy を返します。

Enumerable#select と同じですが、配列ではなくEnumerator::Lazy を返します。

@raise ArgumentError ブロックを指定しなかった場合に発生します。

//emlist[例][ruby]{
1.step.lazy.find_all { |i| i.even? }
# => #<Enumerator::Lazy: #<Enumerator::Lazy: #<Enumerator: 1:step>>:find_all>

1.step.lazy.select { |i| i.even? }.take(10).force
# => [2, 4, 6,...

Array#map {|item| ... } -> [object] (18610.0)

各要素に対してブロックを評価した結果を全て含む配列を返します。

各要素に対してブロックを評価した結果を全て含む配列を返します。

ブロックを省略した場合は Enumerator を返します。

//emlist[例][ruby]{
# すべて 3 倍にする
p [1, 2, 3].map {|n| n * 3 } # => [3, 6, 9]
//}

@see Hash#to_h, Enumerable#collect, Enumerable#map

絞り込み条件を変える

Array#map! {|item| ..} -> self (18610.0)

各要素を順番にブロックに渡して評価し、その結果で要素を 置き換えます。

各要素を順番にブロックに渡して評価し、その結果で要素を
置き換えます。

ブロックが与えられなかった場合は、自身と map! から生成した
Enumerator オブジェクトを返します。

//emlist[例][ruby]{
ary = [1, 2, 3]
ary.map! {|i| i * 3 }
p ary #=> [3, 6, 9]

ary = [1, 2, 3]
e = ary.map!
e.each{ 1 }
p ary #=> [1, 1, 1]
//}

@see Array#collect, Enumerator

Enumerable#map {|item| ... } -> [object] (18610.0)

各要素に対してブロックを評価した結果を全て含む配列を返します。

各要素に対してブロックを評価した結果を全て含む配列を返します。

ブロックを省略した場合は Enumerator を返します。

//emlist[例][ruby]{
# すべて 3 倍にした配列を返す
p (1..3).map {|n| n * 3 } # => [3, 6, 9]
p (1..3).collect { "cat" } # => ["cat", "cat", "cat"]
//}

@see Hash#to_h, Array#collect, Array#map

Enumerator::Lazy#map {|item| ... } -> Enumerator::Lazy (18610.0)

Enumerable#map と同じですが、配列ではなくEnumerator::Lazy を返します。

Enumerable#map と同じですが、配列ではなくEnumerator::Lazy を返します。

@raise ArgumentError ブロックを指定しなかった場合に発生します。

//emlist[例][ruby]{
1.step.lazy.map{ |n| n % 3 == 0 }
# => #<Enumerator::Lazy: #<Enumerator::Lazy: #<Enumerator: 1:step>>:map>

1.step.lazy.collect{ |n| n.succ }.take(10).force
# => [2, 3, 4, 5, 6, 7, 8,...

Array#each {|item| .... } -> self (18607.0)

各要素に対してブロックを評価します。

各要素に対してブロックを評価します。

ブロックが与えられなかった場合は、自身と each から生成した
Enumerator オブジェクトを返します。

//emlist[例][ruby]{
[1, 2, 3].each do |i|
puts i
end
#=> 1
# 2
# 3
//}


@see Array#each_index, Array#reverse_each

Dir#each {|item| ... } -> self (18607.0)

ディレクトリの各エントリを表す文字列を引数として、ブロックを評価します。

ディレクトリの各エントリを表す文字列を引数として、ブロックを評価します。

ブロックが与えられなかった場合、各エントリを文字列として保持する
Enumerator
オブジェクトを返します。

@raise IOError 既に自身が close している場合に発生します。

//emlist[例][ruby]{
Dir.open('.').each{|f|
p f
}
#=> "."
# ".."
# "bar"
# "foo"
//}

@see Dir#each_child

絞り込み条件を変える

Dir#each_child {|item| ... } -> self (18607.0)

ディレクトリの "." と ".." をのぞく各エントリを表す文字列を引数として、 ブロックを評価します。

ディレクトリの "." と ".." をのぞく各エントリを表す文字列を引数として、
ブロックを評価します。

ブロックが与えられなかった場合、各エントリを文字列として保持する
Enumerator
オブジェクトを返します。

@raise IOError 既に self が close している場合に発生します。

//emlist[例][ruby]{
Dir.open('.').each_child{|f|
p f
}
#=> "bar"
# "foo"
//}

@see Dir#each
@see Dir.each_child

Enumerable#each_with_index(*args) {|item, index| ... } -> self (18607.0)

要素とそのインデックスをブロックに渡して繰り返します。

要素とそのインデックスをブロックに渡して繰り返します。

ブロックを省略した場合は、
要素とそのインデックスを繰り返すような
Enumerator を返します。

Enumerator#with_index は offset 引数を受け取りますが、
each_with_index は受け取りません (引数はイテレータメソッドにそのまま渡されます)。

@param args イテレータメソッド (each など) にそのまま渡されます。

//emlist[例][ruby]{
[5, 10, 15].each_with_index do |n, idx|
p [n, idx]
end
#...

Enumerable#filter_map {|item| ... } -> [object] (18607.0)

各要素に対してブロックを評価した値のうち、真であった値の 配列を返します。

各要素に対してブロックを評価した値のうち、真であった値の
配列を返します。

ブロックを省略した場合は Enumerator を返します。

//emlist[例][ruby]{
(1..10).filter_map { |i| i * 2 if i.even? } #=> [4, 8, 12, 16, 20]
//}

@see Enumerable#filter, Enumerable#map

Enumerable#partition {|item| ... } -> [[object], [object]] (18607.0)

各要素を、ブロックの条件を満たす要素と満たさない要素に分割します。 各要素に対してブロックを評価して、その値が真であった要素の配列と、 偽であった要素の配列の 2 つを配列に入れて返します。

各要素を、ブロックの条件を満たす要素と満たさない要素に分割します。
各要素に対してブロックを評価して、その値が真であった要素の配列と、
偽であった要素の配列の 2 つを配列に入れて返します。

ブロックを省略した場合は Enumerator を返します。

//emlist[例][ruby]{
[10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0].partition {|i| i % 3 == 0 }
#=> [[9, 6, 3, 0], [10, 8, 7, 5, 4, 2, 1]]
//}

Enumerator::Lazy#filter_map {|item| ... } -> Enumerator::Lazy (18607.0)

Enumerable#filter_map と同じですが、配列ではなく Enumerator::Lazy を返します。

Enumerable#filter_map と同じですが、配列ではなく Enumerator::Lazy を返します。

@raise ArgumentError ブロックを指定しなかった場合に発生します。

//emlist[例][ruby]{
1.step.lazy.filter_map { |n| n * 2 if n.even? }
# => #<Enumerator::Lazy: #<Enumerator::Lazy: (1.step)>:filter_map>

1.step.lazy.filter_map { |n| n * 2 if n.even? }.take(10).fo...

絞り込み条件を変える

<< 1 2 3 > >>