Module: Nucleon::Mixin::Colors

Included in:
Core, Facade, Plugin::Action, Util::CLI::Parser
Defined in:
lib/core/mixin/colors.rb

Overview

  • See Nucleon::Util::Console

Instance Method Summary collapse

Instance Method Details

#black(string) ⇒ Object

Return a given string wrapped in black text markers.

See:

  • Nucleon::Util::Console::black



20
21
22
# File 'lib/core/mixin/colors.rb', line 20

def black(string)
  ::Nucleon::Util::Console.black(string)
end

#blue(string) ⇒ Object

Return a given string wrapped in blue text markers.

See:

  • Nucleon::Util::Console::blue



56
57
58
# File 'lib/core/mixin/colors.rb', line 56

def blue(string)
  ::Nucleon::Util::Console.blue(string)
end

#cyan(string) ⇒ Object

Return a given string wrapped in cyan text markers.

See:

  • Nucleon::Util::Console::cyan



74
75
76
# File 'lib/core/mixin/colors.rb', line 74

def cyan(string)
  ::Nucleon::Util::Console.cyan(string)
end

#green(string) ⇒ Object

Return a given string wrapped in green text markers.

See:

  • Nucleon::Util::Console::green



38
39
40
# File 'lib/core/mixin/colors.rb', line 38

def green(string)
  ::Nucleon::Util::Console.green(string)
end

#grey(string) ⇒ Object

Return a given string wrapped in grey text markers.

See:

  • Nucleon::Util::Console::grey



83
84
85
# File 'lib/core/mixin/colors.rb', line 83

def grey(string)
  ::Nucleon::Util::Console.grey(string)
end

#purple(string) ⇒ Object

Return a given string wrapped in purple text markers.

See:

  • Nucleon::Util::Console::purple



65
66
67
# File 'lib/core/mixin/colors.rb', line 65

def purple(string)
  ::Nucleon::Util::Console.purple(string)
end

#red(string) ⇒ Object

Return a given string wrapped in red text markers.

See:

  • Nucleon::Util::Console::red



29
30
31
# File 'lib/core/mixin/colors.rb', line 29

def red(string)
  ::Nucleon::Util::Console.red(string)
end

#yellow(string) ⇒ Object

Return a given string wrapped in yellow text markers.

See:

  • Nucleon::Util::Console::yellow



47
48
49
# File 'lib/core/mixin/colors.rb', line 47

def yellow(string)
  ::Nucleon::Util::Console.yellow(string)
end