Yes, we need #blank? to be extra expensive because beginners needn't control what gets injected in their Arrays. Maybe `{"" => ""}.blank?` should be true, too?
Here you go: class Array def super_blank? # Go! end end Scott On Mon, Jul 9, 2012 at 7:15 AM, Michael Boutros <michael.bout...@gmail.com>wrote: > Hello: > > 1.9.3p194 :014 > "".blank? > => true > 1.9.3p194 :015 > ["", ""].blank? > => false > > Proposal: the second line should also produce true. > > Thoughts? > > -- > You received this message because you are subscribed to the Google Groups > "Ruby on Rails: Core" group. > To view this discussion on the web visit > https://groups.google.com/d/msg/rubyonrails-core/-/Rbgmrz1cT7AJ. > To post to this group, send email to rubyonrails-core@googlegroups.com. > To unsubscribe from this group, send email to > rubyonrails-core+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/rubyonrails-core?hl=en. > -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. To post to this group, send email to rubyonrails-core@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-core+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-core?hl=en.