Short cut of a FileType
6 7 8
# File 'lib/switch_file/file_type_shortcut.rb', line 6 def file_type FileType.all.detect{|file_type| self.value.to_s == file_type.shortcut.to_s} end