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.



162
163
164
165
166
167
# File 'lib/sisu/sst_do_inline_footnotes.rb', line 162

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



168
169
170
171
# File 'lib/sisu/sst_do_inline_footnotes.rb', line 168

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