Class: SiSU_XHTML::Source::Songsheet

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

Instance Method Summary collapse

Constructor Details

#initialize(particulars) ⇒ Songsheet

Returns a new instance of Songsheet.



120
121
122
123
# File 'lib/sisu/xhtml.rb', line 120

def initialize(particulars)
  @env,@md,@ao_array,@particulars=particulars.env,particulars.md,particulars.ao_array,particulars
  @file=SiSU_Env::FileOp.new(@md)
end

Instance Method Details

#songObject



124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
# File 'lib/sisu/xhtml.rb', line 124

def song
  begin
    SiSU_XHTML::Source::Scroll.new(@particulars).songsheet
    if (@md.opt.act[:verbose][:set]==:on \
    || @md.opt.act[:verbose_plus][:set]==:on \
    || @md.opt.act[:maintenance][:set]==:on)
      SiSU_XHTML::Source::Tidy.new(@md,@file.place_file.xhtml.dir).xml # test wellformedness, comment out when not in use
    end
    SiSU_Rexml::Rexml.new(@md,@file.place_file.xhtml.dir).xml if @md.opt.act[:maintenance][:set]==:on # test rexml parsing, comment out when not in use #debug
  rescue
    SiSU_Errors::Rescued.new($!,$@,@md.opt.selections.str,@md.fns).location do
      __LINE__.to_s + ':' + __FILE__
    end
  ensure
  end
end