Module: Hydra::Works::MimeTypes
- Extended by:
- ActiveSupport::Concern
- Defined in:
- lib/hydra/works/models/concerns/file_set/mime_types.rb
Defined Under Namespace
Modules: ClassMethods
Instance Method Summary collapse
Instance Method Details
#audio? ⇒ Boolean
18 19 20 |
# File 'lib/hydra/works/models/concerns/file_set/mime_types.rb', line 18 def audio? self.class.audio_mime_types.include? mime_type end |
#image? ⇒ Boolean
10 11 12 |
# File 'lib/hydra/works/models/concerns/file_set/mime_types.rb', line 10 def image? self.class.image_mime_types.include? mime_type end |
#office_document? ⇒ Boolean
22 23 24 |
# File 'lib/hydra/works/models/concerns/file_set/mime_types.rb', line 22 def office_document? self.class.office_document_mime_types.include? mime_type end |
#pdf? ⇒ Boolean
6 7 8 |
# File 'lib/hydra/works/models/concerns/file_set/mime_types.rb', line 6 def pdf? self.class.pdf_mime_types.include? mime_type end |
#video? ⇒ Boolean
14 15 16 |
# File 'lib/hydra/works/models/concerns/file_set/mime_types.rb', line 14 def video? self.class.video_mime_types.include? mime_type end |