diff options
author | Hiroshi SHIBATA <[email protected]> | 2024-05-30 10:32:33 +0900 |
---|---|---|
committer | Hiroshi SHIBATA <[email protected]> | 2024-05-30 10:32:33 +0900 |
commit | f1702261d740fbdca78ae1fbf87b66a59921e685 () | |
tree | 2064fc3c9e98ca965223dab308bc3e7adee74e7a /tool/redmine-backporter.rb | |
parent | 01aa77faa2cd34da1f9add4d0484ab1c292ff662 (diff) |
Suppress warnings about frozen string literal feature
``` tool/redmine-backporter.rb:69: warning: literal string will be frozen in the future ```
-rwxr-xr-x | tool/redmine-backporter.rb | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -66,25 +66,25 @@ class String def color(fore=nil, back=nil, opts={}, bold: false, underscore: false) seq = "" if bold || opts[:bold] - seq << "\e[1m" end if underscore || opts[:underscore] - seq << "\e[2m" end if fore c = COLORS[fore] raise "unknown foreground color #{fore}" unless c - seq << "\e[#{c}m" end if back c = COLORS[back] raise "unknown background color #{back}" unless c - seq << "\e[#{c + 10}m" end if seq.empty? self else - seq << self << "\e[0m" end end end |