Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

List directory content

  • Dir
if ARGV.size != 1
  puts "Needs path to directory"
  exit 1
end

path = ARGV[0]

dr = Dir.new(path)
dr.children.each { |thing|
  puts thing
}