Class: SiSU_ConvertFootnotes::Output

Inherits:
Object
  • Object
show all
Defined in:
lib/sisu/sst_do_inline_footnotes.rb

Instance Method Summary collapse

Constructor Details

#initialize(md, data) ⇒ Output

Returns a new instance of Output.



164
165
166
167
168
169
# File 'lib/sisu/sst_do_inline_footnotes.rb', line 164

def initialize(md,data)
  @md,@data=md,data
  @my_make=SiSU_Env::CreateFile.new(@md.fns)
  SiSU_Env::InfoEnv.new(@md.fns)
  @hard="#{Dir.pwd}/#{@md.fns}.fn"
end

Instance Method Details

#hard_outputObject



170
171
172
173
# File 'lib/sisu/sst_do_inline_footnotes.rb', line 170

def hard_output
  filename_note=@my_make.file_note
  @data.each {|s| filename_note.puts s.strip + "\n\n" unless s.strip.empty?}
end