From 1fdfb77d64a94eb80cf2e84ee81d1d30c34d040a Mon Sep 17 00:00:00 2001 From: Stormwind Date: Tue, 8 Dec 2015 11:53:55 +0100 Subject: [PATCH] Cut down the shades array to the half During the length of the ASCII array length is not more a fix amount of 10. I was able the remove the doubles in the "shades" array. --- lib/rubella/output/ascii.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/rubella/output/ascii.rb b/lib/rubella/output/ascii.rb index 6619c4b..054d95e 100644 --- a/lib/rubella/output/ascii.rb +++ b/lib/rubella/output/ascii.rb @@ -30,7 +30,7 @@ module Rubella def initialize data, field_size = 1 @symbols = Hash.new @symbols["shades"] = - [" ", " ", "░", "░", "▒", "▒", "▓", "▓", "█", "█"] + [" ", "░", "▒", "▓", "█"] @symbols["shades_ascii"] = [" ", "·", "⚬", "∞", "@", "#", "░", "▒", "▓", "█"] @symbols["ascii"] = @@ -53,6 +53,7 @@ module Rubella # * shades_ascii # * ascii # * numbers + # * letters # # @param value String The theme name # @raise ArgumentError