るりまサーチ

最速Rubyリファレンスマニュアル検索!
24件ヒット [1-24件を表示] (0.017秒)
トップページ > クエリ:end[x] > クエリ:iterator?[x]

別のキーワード

  1. _builtin end
  2. ripper end_seen?
  3. _builtin exclude_end?
  4. _builtin end_with?
  5. io seek_end

ライブラリ

モジュール

検索結果

Kernel.#iterator? -> bool (15119.0)

メソッドにブロックが与えられていれば真を返します。

...す。

iterator?
は (ブロックが必ずイテレートするとはいえないので)推奨されていないの
で block_given? を使ってください。

//emlist[例][ruby]{
def check
if block_given?
puts "Block is given."
else
puts "Block isn't given."
end

end

check{} #...

Kernel.#block_given? -> bool (19.0)

メソッドにブロックが与えられていれば真を返します。

...す。

iterator?
は (ブロックが必ずイテレートするとはいえないので)推奨されていないの
で block_given? を使ってください。

//emlist[例][ruby]{
def check
if block_given?
puts "Block is given."
else
puts "Block isn't given."
end

end

check{} #...