Class: Avm::FileFormats::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/avm/file_formats/base.rb

Direct Known Subclasses

Unknown

Instance Method Summary collapse

Instance Method Details

#apply(_files) ⇒ Enumerable<Avm::FileFormats::FileResult>

Returns:



14
15
16
# File 'lib/avm/file_formats/base.rb', line 14

def apply(_files)
  raise_abstract_method __method__
end

#file_resource_name(path) ⇒ Avm::FileFormats::FileWith

Parameters:

  • path (Pathname)

Returns:

  • (Avm::FileFormats::FileWith)


20
21
22
# File 'lib/avm/file_formats/base.rb', line 20

def file_resource_name(path)
  path.to_pathname.to_path
end

#match?(_file) ⇒ Boolean

Parameters:

  • file (Pathname)

Returns:

  • (Boolean)


30
31
32
# File 'lib/avm/file_formats/base.rb', line 30

def match?(_file)
  raise_abstract_method __method__
end

#nameObject



24
25
26
# File 'lib/avm/file_formats/base.rb', line 24

def name
  self.class.name.demodulize
end