Class: Array
- Includes:
- ArrayCleanup, ArrayNestedHash, ArrayTags, Doing::ChronifyArray
- Defined in:
- lib/doing/good.rb,
lib/doing/array/array.rb,
lib/doing/chronify/chronify.rb
Overview
Array helpers
Direct Known Subclasses
Instance Method Summary collapse
-
#cap_first ⇒ Array
Capitalize first letter of each element.
-
#good? ⇒ Boolean
Tests if object is nil or empty.
-
#utf8 ⇒ Array
Force UTF-8 encoding of strings in array.
Methods included from Doing::ChronifyArray
#time_string, #to_abbr, #to_natural, #to_years
Instance Method Details
#cap_first ⇒ Array
Capitalize first letter of each element
31 32 33 |
# File 'lib/doing/array/array.rb', line 31 def cap_first map(&:cap_first) end |
#good? ⇒ Boolean
Tests if object is nil or empty
59 60 61 |
# File 'lib/doing/good.rb', line 59 def good? !nil? && !empty? end |