def file?(path)
      if stat = self.stat(path)
        stat.file?
      elsif path =~ /^#{Volt.root}\/app\/components\/[^\/]+[.]rb$/
        # Matches a component
        return true
      else
        false
      end
    end
def file?(path)
      if stat = self.stat(path)
        stat.file?
      elsif path =~ /^#{Volt.root}\/app\/components\/[^\/]+[.]rb$/
        # Matches a component
        return true
      else
        false
      end
    end
Public: Like `File.file?`.

 path - String file path.

 Returns true path exists and is a file.