Class: Array

Inherits:
Object show all
Defined in:
lib/feet/array.rb

Instance Method Summary collapse

Instance Method Details

#all_strings?Boolean

Returns:

  • (Boolean)


14
15
16
# File 'lib/feet/array.rb', line 14

def all_strings?
  all?(String)
end

#blank?Boolean

Returns:

  • (Boolean)


10
11
12
# File 'lib/feet/array.rb', line 10

def blank?
  respond_to?(:empty?) ? !!empty? : !self
end

#deeply_empty?Boolean

Returns:

  • (Boolean)


2
3
4
# File 'lib/feet/array.rb', line 2

def deeply_empty?
  empty? || all?(&:empty?)
end

#present?Boolean

Returns:

  • (Boolean)


6
7
8
# File 'lib/feet/array.rb', line 6

def present?
  !blank?
end