From: naruse@... Date: 2017-03-24T08:18:33+00:00 Subject: [ruby-core:80305] [Ruby trunk Feature#13303] String#any? as !String#empty? Issue #13303 has been updated by naruse (Yui NARUSE). matz (Yukihiro Matsumoto) wrote: > Use-case? For example https://github.com/ruby/ruby/commit/0256fa889039295742448ad72634fec4ea638684#diff-9199d649a7165e719f0209c3c789f1bbR482 > if h and val = h["value"] and val != "" ---------------------------------------- Feature #13303: String#any? as !String#empty? https://bugs.ruby-lang.org/issues/13303#change-63773 * Author: naruse (Yui NARUSE) * Status: Feedback * Priority: Normal * Assignee: matz (Yukihiro Matsumoto) * Target version: ---------------------------------------- Once I proposed "some container#nonempty?" on #12075, and understand there's Array#any?. Today I found String doesn't have such method. -- https://bugs.ruby-lang.org/ Unsubscribe: