diff options
author | Jon Leighton <j@jonathanleighton.com> | 2012-08-17 17:09:39 +0100 |
---|---|---|
committer | Jon Leighton <j@jonathanleighton.com> | 2012-08-17 18:22:29 +0100 |
commit | 2ff47c48975b52a23982fc7bae592ab32d4fff2e (patch) | |
tree | 19dadbaf6196d2b0e3afb57ea90187be9f7b9eef /.gitignore | |
parent | 8fcd9b6e86274cc36820bfbf55a9d2967177339a (diff) | |
download | rails-2ff47c48975b52a23982fc7bae592ab32d4fff2e.tar.gz rails-2ff47c48975b52a23982fc7bae592ab32d4fff2e.tar.bz2 rails-2ff47c48975b52a23982fc7bae592ab32d4fff2e.zip |
Avoid #any?
any? will check that each item in the array is truthy, as opposed to
!empty? which will simply check that the array has length. For an empty
array, !empty? still seems to be faster than any?
Diffstat (limited to '.gitignore')
0 files changed, 0 insertions, 0 deletions