# File lib/facets/more/filesystem.rb, line 15 def root?(dir=nil) pth = File.expand_path(dir||work) return true if pth == '/' return true if pth =~ /^(\w:)?\/$/ false end