Class: String

Inherits:
Object
  • Object
show all
Extended by:
Ops::Console
Defined in:
lib/ops/console.rb

Constant Summary

Constants included from Ops::Console

Ops::Console::BG_COLORS, Ops::Console::COLORS, Ops::Console::OPTIONS

Instance Method Summary collapse

Methods included from Ops::Console

bash_exec!, is_bash?, print, random_color, reload!

Instance Method Details

#errorObject



50
51
52
# File 'lib/ops/console.rb', line 50

def error
  replace Color.print( self , [ :bold, :red ] )
end

#warningObject



54
55
56
# File 'lib/ops/console.rb', line 54

def warning
  replace Color.print( self , [ :bold, :yellow ] )
end