Class: Avm::Files::Formatter::Formats::Xml
Constant Summary
collapse
- VALID_BASENAMES =
%w[*.xml].freeze
- VALID_TYPES =
['xml'].freeze
Instance Method Summary
collapse
#file_apply, #string_apply
Methods inherited from Base
#apply, #match?, #name, #valid_basenames, #valid_types
Instance Method Details
19
20
21
22
23
|
# File 'lib/avm/files/formatter/formats/xml.rb', line 19
def format_command(files)
::Avm::Executables.tidy.command.append(
%w[-xml -modify --indent auto --indent-spaces 2 --wrap 100] + files
)
end
|
#internal_apply(files) ⇒ Object
14
15
16
17
|
# File 'lib/avm/files/formatter/formats/xml.rb', line 14
def internal_apply(files)
format_command(files).system!
super(files)
end
|