Class: Array
- Inherits:
-
Object
- Object
- Array
- Defined in:
- lib/doing/array.rb
Overview
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.
-
#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
#to_tags ⇒ Array
Convert strings to @tags