1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Prefer block_given? to iterator?

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66866 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2019-01-18 09:52:50 +00:00 committed by Kazuhiro NISHIYAMA
parent e804fcb42c
commit 8990779d36
No known key found for this signature in database
GPG key ID: 262ED8DBB4222F7A

View file

@ -21,7 +21,7 @@ module IRB
class << self
alias_method :exit, ExtendCommand.irb_original_method_name('exit')
end
if iterator?
if block_given?
begin
yield
ensure