Method: CommonLib::Array#true?
- Defined in:
- lib/common_lib/ruby/array.rb
#true? ⇒ Boolean
[].true?
> false
[true].true?
> true
[true,false].true?
> true
[false].true?
> false
107 108 109 |
# File 'lib/common_lib/ruby/array.rb', line 107 def true? !empty? && any?{|v| v.true? } end |