mirror of
https://github.com/ruby/ruby.git
synced 2025-08-28 07:26:00 +02:00
![]() With verbopse mode (-w), the interpreter shows a warning if
a block is passed to a method which does not use the given block.
Warning on:
* the invoked method is written in C
* the invoked method is not `initialize`
* not invoked with `super`
* the first time on the call-site with the invoked method
(`obj.foo{}` will be warned once if `foo` is same method)
[Feature #15554]
`Primitive.attr! :use_block` is introduced to declare that primitive
functions (written in C) will use passed block.
For minitest, test needs some tweak, so use
|
||
---|---|---|
.. | ||
testunit | ||
webrick | ||
init.rb | ||
runner.rb | ||
test_jisx0208.rb | ||
test_sync_default_gems.rb |