module Display

Public Instance Methods

display_fix_list(list) click to toggle source
# File lib/display.rb, line 25
def display_fix_list(list)
  list.each { |l| puts "  - #{l}" } if list.length >= 2
end
kernel_show(line, exp) click to toggle source
# File lib/display.rb, line 11
def kernel_show(line, exp)
  print "  - #{line} (exp: #{exp})"
end
perm_show(line, exp) click to toggle source
# File lib/display.rb, line 15
def perm_show(line, exp)
  print "  - #{line} (exp: < "
  printf "%04o", exp
  print ")"
end
result(res, ntab = 3) click to toggle source
# File lib/display.rb, line 21
def result(res, ntab = 3)
  puts "\t" * ntab + "[ #{res} ]"
end
show_bad_mod(name) click to toggle source
# File lib/display.rb, line 29
def show_bad_mod(name)
  print "  - Checking if #{name} is not available"
end
title(name) click to toggle source
# File lib/display.rb, line 4
def title(name)
  l = name.length
  puts " [+] #{name} "
  puts '-' * l * 2.9
  puts
end