Class: SiSU_XHTML::Source::Output
- Inherits:
-
Object
- Object
- SiSU_XHTML::Source::Output
- Defined in:
- lib/sisu/xhtml.rb
Instance Method Summary collapse
-
#initialize(data, md) ⇒ Output
constructor
A new instance of Output.
- #xhtml ⇒ Object
Constructor Details
Instance Method Details
#xhtml ⇒ Object
420 421 422 423 424 425 426 427 428 |
# File 'lib/sisu/xhtml.rb', line 420 def xhtml SiSU_Env::FileOp.new(@md).mkdir filename_xml=@file.write_file.xhtml @data.each do |str| str=str.gsub(/\A\s+\Z/m,'') #str.gsub(/^\s+$/,'') filename_xml.puts str unless str.empty? end filename_xml.close end |