class DTK::Shell::HeaderShell
We will use this class to generate header for console which would be always present, when activated. Hirb implementation will be used to display status information.
Attributes
active[RW]
is_active?[RW]
Public Class Methods
new()
click to toggle source
# File lib/shell/header_shell.rb, line 31 def initialize @active = true end
Public Instance Methods
print_header()
click to toggle source
# File lib/shell/header_shell.rb, line 35 def print_header puts "*********************" puts "********************* #{Time.now} " puts "*********************" end