Actions
Bug #6214
closedwarnings on inspect for Enumerator objects if $VERBOSE
Status:
Closed
Assignee:
-
Target version:
-
ruby -v:
ruby 2.0.0dev (2012-03-28 trunk 35155) [x86_64-linux]
Backport:
Description
Lazy なオブジェクトの inspect がわかりやすくなった反面、
$VERBOSE な時に警告が出るようです。
$ ruby -ve 'p "".bytes'
ruby 2.0.0dev (2012-03-28 trunk 35155) [x86_64-linux]
-e:1: warning: instance variable receiver not initialized
-e:1: warning: instance variable method not initialized
-e:1: warning: instance variable arguments not initialized
#<Enumerator: "":bytes>
$ ruby -ve 'p [].lazy'
ruby 2.0.0dev (2012-03-28 trunk 35155) [x86_64-linux]
-e:1: warning: instance variable arguments not initialized
#<Enumerator::Lazy: []>
xmpfilter を通す時に警告が表示されてちょっと困ります。
$ xmpfilter <(echo '[].lazy # =>')
[].lazy # => #<Enumerator::Lazy: []> # !> instance variable arguments not initialized
Files
Actions
Like0
Like0Like0