Class: Avm::FileFormats::Base
- Inherits:
-
Object
- Object
- Avm::FileFormats::Base
- Defined in:
- lib/avm/file_formats/base.rb
Direct Known Subclasses
Instance Method Summary collapse
- #apply(_files) ⇒ Enumerable<Avm::FileFormats::FileResult>
- #file_resource_name(path) ⇒ Avm::FileFormats::FileWith
- #match?(_file) ⇒ Boolean
- #name ⇒ Object
Instance Method Details
#apply(_files) ⇒ Enumerable<Avm::FileFormats::FileResult>
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
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
30 31 32 |
# File 'lib/avm/file_formats/base.rb', line 30 def match?(_file) raise_abstract_method __method__ end |
#name ⇒ Object
24 25 26 |
# File 'lib/avm/file_formats/base.rb', line 24 def name self.class.name.demodulize end |