Class: Man

Inherits:
Object show all
Defined in:
lib/xiki/man.rb

Class Method Summary collapse

Class Method Details



2
3
4
5
6
7
8
9
10
11
12
13
# File 'lib/xiki/man.rb', line 2

def self.menu command=nil
  if command == nil
    return "
      | Type a command to show its man page:
      - example: ls
      - last used: @last/man/
      "
  end

  `man #{command} | col -x -b`.gsub(/^/, '| ').gsub(/^\| $/, '|')

end

.rootObject



15
16
17
# File 'lib/xiki/man.rb', line 15

def self.root

end