Matthew Bellantoni

The opposite of "empty" is "full."

ruby

Sometimes you want to know what something is and not what it is not. Got that?

1
2
3
4
5
class Array
  def full?
    not empty?
  end
end

I do like writing some Ruby!

Update 2/28/2015 You're looking for Array#any?.