Issue #13303 has been updated by stomar (Marcus Stollsteimer). mame (Yusuke Endoh) wrote: > if h and h["value"].present? I think `foo.present?` semantically should be the same as `!foo.nil?` ("is the object present?" = "does the object exist?"), which probably wouldn't make much sense as a method on objects other than booleans. Also: * `String#filled?`: is "x" a "full" string? ... * `String#any_chars?`: sounds like there also might be e.g. `String#any_bytes?` String#not_empty? or String#non_empty? sounds best so far, IMHO. ---------------------------------------- Feature #13303: String#any? as !String#empty? https://bugs.ruby-lang.org/issues/13303#change-63786 * 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: <mailto:ruby-core-request / ruby-lang.org?subject=unsubscribe> <http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>