Class: Avm::EacGenericBase0::FileFormats::Base::Match

Inherits:
Object
  • Object
show all
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

#resultBoolean

Returns:

  • (Boolean)


13
14
15
# File 'lib/avm/eac_generic_base0/file_formats/base/match.rb', line 13

def result # rubocop:disable Naming/PredicateMethod
  result_by_filename? || result_by_type?
end

#valid_basenamesArray<String>

Returns:

  • (Array<String>)


18
19
20
# File 'lib/avm/eac_generic_base0/file_formats/base/match.rb', line 18

def valid_basenames
  constant_or_array('VALID_BASENAMES')
end

#valid_typesArray<String>

Returns:

  • (Array<String>)


23
24
25
26
27
# File 'lib/avm/eac_generic_base0/file_formats/base/match.rb', line 23

def valid_types
  constant_or_array('VALID_TYPES').map do |mime_type|
    mime_type_sanitize(mime_type)
  end
end