(styleProperty, content)
| 213 | } |
| 214 | |
| 215 | wrapWithStyleColors(styleProperty, content) { |
| 216 | if (this[styleProperty] && this[styleProperty].length) { |
| 217 | try { |
| 218 | let colors = require('@colors/colors/safe'); |
| 219 | for (let i = this[styleProperty].length - 1; i >= 0; i--) { |
| 220 | colors = colors[this[styleProperty][i]]; |
| 221 | } |
| 222 | return colors(content); |
| 223 | } catch (e) { |
| 224 | return content; |
| 225 | } |
| 226 | } else { |
| 227 | return content; |
| 228 | } |
| 229 | } |
| 230 | |
| 231 | /** |
| 232 | * Renders a line of text. |
no outgoing calls
no test coverage detected