Class: SiSU_XML_DOM::Source::Output
- Inherits:
-
Object
- Object
- SiSU_XML_DOM::Source::Output
- Includes:
- SiSU_Param
- Defined in:
- lib/sisu/xml_dom.rb
Instance Method Summary collapse
-
#initialize(data, md) ⇒ Output
constructor
A new instance of Output.
- #xml ⇒ Object
Constructor Details
Instance Method Details
#xml ⇒ Object
577 578 579 580 581 582 583 584 585 |
# File 'lib/sisu/xml_dom.rb', line 577 def xml SiSU_Env::FileOp.new(@md).mkdir filename_xml=@file.write_file.xml_dom @data.each do |str| str=str.gsub(/#{Mx[:pa_o]}:\S+#{Mx[:pa_c]}/,'') filename_xml.puts str unless str.empty? end filename_xml.close end |