Skip to content

Instantly share code, notes, and snippets.

@rupurt
Created February 24, 2016 17:03
Show Gist options
  • Select an option

  • Save rupurt/09ec8f3f9ac9c4e6e180 to your computer and use it in GitHub Desktop.

Select an option

Save rupurt/09ec8f3f9ac9c4e6e180 to your computer and use it in GitHub Desktop.
Processing groups spike
module FileType
2 module ProcessingGroup
3 Box = [PDF, Word, Powerpoint]
4 Video = [Video]
5 end
6
7 module ViewingGroup
8 Document = [PDF, Word]
9 Presentation = [PDF, Powerpoint]
10 Video = [Video]
11 end
12
13 Word = FileType::Group.new(
14 extensions: %w(
15 doc
16 docx
17 ),
18 mimetypes: [
19 "application/msword",
20 "application/vnd.openxmlformats-officedocument.wordprocessingml.document"
21 ]
22 )
23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment