Class: Array
Instance Method Summary collapse
Instance Method Details
#all_strings? ⇒ Boolean
14 15 16 |
# File 'lib/feet/array.rb', line 14 def all_strings? all?(String) end |
#blank? ⇒ Boolean
10 11 12 |
# File 'lib/feet/array.rb', line 10 def blank? respond_to?(:empty?) ? !!empty? : !self end |
#deeply_empty? ⇒ Boolean
2 3 4 |
# File 'lib/feet/array.rb', line 2 def deeply_empty? empty? || all?(&:empty?) end |
#present? ⇒ Boolean
6 7 8 |
# File 'lib/feet/array.rb', line 6 def present? !blank? end |