Method: Doing::ArrayTags#highlight_tags

Defined in:
lib/doing/array/tags.rb

#highlight_tags(color = 'cyan') ⇒ Array

Hightlight @tags in string for console output

Parameters:

  • color (String) (defaults to: 'cyan')

    the color to highlight with

Returns:

  • (Array)

    Array of highlighted @tags



37
38
39
# File 'lib/doing/array/tags.rb', line 37

def highlight_tags(color = 'cyan')
  to_tags.map { |t| Doing::Color.send(color.to_sym, t) }
end