module Nucleon::Mixin::Colors

Console colors

The Nucleon::Mixin::Colors module extends a class or instance to include methods for wrapping strings in colored text markers.

For usage and definition:

Public Instance Methods

black(string) click to toggle source

Return a given string wrapped in black text markers.

See:

   # File lib/core/mixin/colors.rb
20 def black(string)
21   ::Nucleon::Util::Console.black(string)
22 end
blue(string) click to toggle source

Return a given string wrapped in blue text markers.

See:

   # File lib/core/mixin/colors.rb
56 def blue(string)
57   ::Nucleon::Util::Console.blue(string)
58 end
cyan(string) click to toggle source

Return a given string wrapped in cyan text markers.

See:

   # File lib/core/mixin/colors.rb
74 def cyan(string)
75   ::Nucleon::Util::Console.cyan(string)
76 end
green(string) click to toggle source

Return a given string wrapped in green text markers.

See:

   # File lib/core/mixin/colors.rb
38 def green(string)
39   ::Nucleon::Util::Console.green(string)
40 end
grey(string) click to toggle source

Return a given string wrapped in grey text markers.

See:

   # File lib/core/mixin/colors.rb
83 def grey(string)
84   ::Nucleon::Util::Console.grey(string)
85 end
purple(string) click to toggle source

Return a given string wrapped in purple text markers.

See:

   # File lib/core/mixin/colors.rb
65 def purple(string)
66   ::Nucleon::Util::Console.purple(string)
67 end
red(string) click to toggle source

Return a given string wrapped in red text markers.

See:

   # File lib/core/mixin/colors.rb
29 def red(string)
30   ::Nucleon::Util::Console.red(string)
31 end
yellow(string) click to toggle source

Return a given string wrapped in yellow text markers.

See:

   # File lib/core/mixin/colors.rb
47 def yellow(string)
48   ::Nucleon::Util::Console.yellow(string)
49 end