Class: Avm::EacWebappBase0::FileFormats::Xml
- Inherits:
-
Avm::EacGenericBase0::FileFormats::Base
- Object
- Avm::EacGenericBase0::FileFormats::Base
- Avm::EacWebappBase0::FileFormats::Xml
- Defined in:
- lib/avm/eac_webapp_base0/file_formats/xml.rb
Constant Summary collapse
- VALID_BASENAMES =
%w[*.svg *.xml].freeze
- VALID_TYPES =
['image/svg+xml', 'xml'].freeze
Instance Method Summary collapse
Instance Method Details
#format_command(files) ⇒ Object
15 16 17 18 19 |
# File 'lib/avm/eac_webapp_base0/file_formats/xml.rb', line 15 def format_command(files) ::Avm::EacWebappBase0::Executables.tidy.command.append( %w[-xml -modify --indent auto --indent-spaces 2 --wrap 100] + files ) end |
#internal_apply(files) ⇒ Object
10 11 12 13 |
# File 'lib/avm/eac_webapp_base0/file_formats/xml.rb', line 10 def internal_apply(files) format_command(files).system! super end |