Class: SiSU_SimpleXML_ModelSax::Convert::Songsheet
- Inherits:
-
Object
- Object
- SiSU_SimpleXML_ModelSax::Convert::Songsheet
- Defined in:
- lib/sisu/sst_to_s_xml_sax.rb
Instance Method Summary collapse
-
#initialize(data, particulars) ⇒ Songsheet
constructor
A new instance of Songsheet.
- #songsheet ⇒ Object
Constructor Details
#initialize(data, particulars) ⇒ Songsheet
Returns a new instance of Songsheet.
122 123 124 |
# File 'lib/sisu/sst_to_s_xml_sax.rb', line 122 def initialize(data,particulars) @data,@particulars,@env,@md=data,particulars,particulars.env,particulars.md end |
Instance Method Details
#songsheet ⇒ Object
125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 |
# File 'lib/sisu/sst_to_s_xml_sax.rb', line 125 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 |