Class: Avm::EacGenericBase0::FileFormats::Base::Match
- Inherits:
-
Object
- Object
- Avm::EacGenericBase0::FileFormats::Base::Match
- Defined in:
- lib/avm/eac_generic_base0/file_formats/base/match.rb
Constant Summary collapse
- DEFAULT_TYPE =
'text'
Instance Method Summary collapse
Instance Method Details
#result ⇒ Boolean
17 18 19 |
# File 'lib/avm/eac_generic_base0/file_formats/base/match.rb', line 17 def result result_by_filename? || result_by_type? end |
#valid_basenames ⇒ Array<String>
22 23 24 |
# File 'lib/avm/eac_generic_base0/file_formats/base/match.rb', line 22 def valid_basenames constant_or_array('VALID_BASENAMES') end |
#valid_types ⇒ Array<String>
27 28 29 30 31 |
# File 'lib/avm/eac_generic_base0/file_formats/base/match.rb', line 27 def valid_types constant_or_array('VALID_TYPES').map do |mime_type| mime_type_sanitize(mime_type) end end |