class Cmdlib::Describe
Public Class Methods
outtitle( str )
click to toggle source
Display title in follow format: *** [title] ***.
# File lib/cmdlib/describe.rb, line 5 def self.outtitle ( str ) if( str.length < (80-4) ) then borderlen = 80 - str.length - 4 print '*' * (borderlen/2) print '[ ' print str print ' ]' puts '*' * (borderlen/2) else puts str end end