Class: SwitchFile::FileTypeShortcut

Inherits:
Valuable
  • Object
show all
Defined in:
lib/switch_file/file_type_shortcut.rb

Overview

Short cut of a FileType

Instance Method Summary collapse

Instance Method Details

#file_typeObject



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