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
18 19 20 21 22 |
# File 'lib/avm/eac_webapp_base0/file_formats/xml.rb', line 18 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
13 14 15 16 |
# File 'lib/avm/eac_webapp_base0/file_formats/xml.rb', line 13 def internal_apply(files) format_command(files).system! super end |