Class: SiSU_XHTML_EPUB2_Tune::Output
- Inherits:
-
Object
- Object
- SiSU_XHTML_EPUB2_Tune::Output
- Defined in:
- lib/sisu/xhtml_epub2_tune.rb
Instance Method Summary collapse
- #hard_output ⇒ Object
-
#initialize(data, md) ⇒ Output
constructor
A new instance of Output.
- #marshal ⇒ Object
Constructor Details
Instance Method Details
#hard_output ⇒ Object
79 80 81 82 83 84 85 86 |
# File 'lib/sisu/xhtml_epub2_tune.rb', line 79 def hard_output @filename_tune=@file.write_file_processing.html_tune data=[] @data.each {|x| x.obj.strip; data << x if not x.obj.empty?} #1.9 array? data.each do |dob| @filename_tune.puts dob, "\n" #check end end |
#marshal ⇒ Object
87 88 89 |
# File 'lib/sisu/xhtml_epub2_tune.rb', line 87 def marshal File.open(@file.marshal.xhtml_tune,'w') {|f| Marshal.dump(@data.to_a,f)} end |