Class: Array
- Inherits:
-
Object
- Object
- Array
- Defined in:
- lib/doing/array.rb
Overview
Array helpers
Direct Known Subclasses
Instance Method Summary collapse
Instance Method Details
#highlight_tags(color = 'cyan') ⇒ Object
12 13 14 15 |
# File 'lib/doing/array.rb', line 12 def (color = 'cyan') tag_color = Doing::Color.send(color) .map { |t| "#{tag_color}#{t}" } end |
#log_tags ⇒ Object
17 18 19 |
# File 'lib/doing/array.rb', line 17 def .join(', ') end |
#to_tags ⇒ Object
8 9 10 |
# File 'lib/doing/array.rb', line 8 def map { |t| t.sub(/^@?/, '@') } end |