Class: SiSU_HTML_Tune::Output
- Inherits:
-
Object
- Object
- SiSU_HTML_Tune::Output
- Defined in:
- lib/sisu/html_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 87 88 89 90 91 |
# File 'lib/sisu/html_tune.rb', line 79 def hard_output @filename_tune=@file.write_file_processing.html_tune data=[] @data.each do |x| unless x.obj.empty? x.obj=x.obj.strip data << x end end data.each do |dob| @filename_tune.puts dob, "\n" end end |
#marshal ⇒ Object
92 93 94 |
# File 'lib/sisu/html_tune.rb', line 92 def marshal File.open(@file.marshal.html_tune,'w') {|f| Marshal.dump(@data.to_a,f)} end |