Class: Array
- Inherits:
-
Object
- Object
- Array
- Defined in:
- lib/doing/array.rb,
lib/doing/array_chronify.rb
Overview
Chronify array helpers
Direct Known Subclasses
Instance Method Summary collapse
-
#highlight_tags(color = 'cyan') ⇒ String
Hightlight @tags in string for console output.
-
#log_tags ⇒ String
Tag array for logging.
-
#nested_hash(value) ⇒ Object
Convert array to nested hash, setting last key to value.
-
#tags_to_array ⇒ Array
Convert an @tags to plain strings.
-
#time_string(format: :dhm) ⇒ String
Format [d, h, m] as string.
-
#to_tags ⇒ Array
Convert strings to @tags.
- #to_tags! ⇒ Object
Instance Method Details
#highlight_tags(color = 'cyan') ⇒ String
Hightlight @tags in string for console output
#log_tags ⇒ String
Tag array for logging
#nested_hash(value) ⇒ Object
Convert array to nested hash, setting last key to value
#tags_to_array ⇒ Array
Convert an @tags to plain strings
#time_string(format: :dhm) ⇒ String
Format [d, h, m] as string
#to_tags ⇒ Array
Convert strings to @tags