Module: InfoDisplay
- Included in:
- Mir::Image
- Defined in:
- lib/mir/00_info_display.rb
Instance Method Summary collapse
Instance Method Details
#hit_a_key(str = "") ⇒ Object
20 21 22 23 24 |
# File 'lib/mir/00_info_display.rb', line 20 def hit_a_key str="" puts str puts "hit_a_key" $stdin.gets end |
#info(level, str, other = "") ⇒ Object
2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
# File 'lib/mir/00_info_display.rb', line 2 def info(level,str,other="") case level when 0 ="" when 1 =" |-" else =" "*3*(level-1)+" |-" end str="#{}[+] #{str}" other="#{other}" if other.size > 0 puts str.ljust(40,'.')+" #{other}" else puts str end end |