How to get all file types in ruby

I hope make a inRuby meth to determine current file is ruby file

0

file.getFileType() == FileTypeManager.getInstance().getFileTypeByExtension("rb")

0

请先登录再写评论。