lorizedString.add_color_alias(czerwony: :red, granatowy: :blue) # examples puts ColorizedString["This is blue"].colorize(:blue) puts ColorizedString["This is light blue"].colorize(:light_blue) puts ColorizedString["This is also blue"].colorize(:color => :blue) puts ColorizedString["This is bold green"].colorize(:color => :green, :mode => :bold) puts ColorizedString["This is light blue with red background"].colorize(:color => :light_blue, :background => :red) puts ColorizedString["This is light blue with red background"].colorize(:light_blue ).colorize( :background => :red) puts ColorizedString["This is blue text on red"].blue.on_red puts ColorizedString["This is red on blue"].colorize(:red).on_blue puts ColorizedString["This is red on blue and underline"].colorize(:red).on_blue.underline puts ColorizedString["This is blinking blue text on red"].blue.on_red.blink puts ColorizedString["This is uncolorized"].blue.on_red.uncolorize puts ColorizedString.new("This is blue").blue puts ColorizedString.new("This is light blue").colorize(:light_blue) ``` requirements ------------ * Win32/Console/ANSI (for Windows) install ------- * gem install colorize *Note:* You may need to use sudo to install gems thank you --------- [![Become Patreon](https://c5.patreon.com/external/logo/become_a_patron_button.png)](https://www.patreon.com/bePatron?u=6912974) license ------- Copyright (C) 2007-2016 MichaƂ Kalbarczyk This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.