Skip to content

Commit d99b917

Browse files
committed
Freeze string literal
1 parent ce01541 commit d99b917

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

lib/unicode_plot/block_canvas.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,10 @@ def initialize(width, height, fill_char=0, **kw)
2424
].freeze
2525

2626
BLOCK_DECODE = [
27-
' ', '▗', '▖', '▄',
28-
'▝', '▐', '▞', '▟',
29-
'▘', '▚', '▌', '▙',
30-
'▀', '▜', '▛', '█'
27+
-' ', -'▗', -'▖', -'▄',
28+
-'▝', -'▐', -'▞', -'▟',
29+
-'▘', -'▚', -'▌', -'▙',
30+
-'▀', -'▜', -'▛', -'█'
3131
].freeze
3232

3333
def lookup_encode(x,y) ; BLOCK_SIGNS[x][y] ; end

0 commit comments

Comments
 (0)