class SiSU_SimpleXML_ModelSax::Convert::Songsheet

Public Class Methods

new(data,particulars) click to toggle source
# File lib/sisu/sst_to_s_xml_sax.rb, line 120
def initialize(data,particulars)
  @data,@particulars,@env,@md=data,particulars,particulars.env,particulars.md
end

Public Instance Methods

songsheet() click to toggle source
# File lib/sisu/sst_to_s_xml_sax.rb, line 123
def songsheet
  begin
    SiSU_SimpleXML_ModelSax::Convert::Scroll.new(@data,@particulars).songsheet
    if (@md.opt.act[:verbose][:set]==:on \
    || @md.opt.act[:verbose_plus][:set]==:on \
    || @md.opt.act[:maintenance][:set]==:on)
      SiSU_SimpleXML_ModelSax::Convert::Tidy.new(@md,@env).xml # test wellformedness, comment out when not in use
    end
    SiSU_Rexml::Rexml.new(@md,@md.fn[:sxs]).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.cmd,@md.fns).location do
      __LINE__.to_s + ':' + __FILE__
    end
  ensure
  end
end