class String

for easier printing of colored string on the screen we can add color property to any string and then use it to print the string on the screen

Attributes

color[RW]
style[RW]

Public Instance Methods

colorize(color, style = Amun::Helpers::Colors::NORMAL) click to toggle source
# File lib/amun/helpers/colors.rb, line 105
def colorize(color, style = Amun::Helpers::Colors::NORMAL)
  self.color = color
  self.style = style
  self
end