Class: SiSU_XML_Docbook_Book::Source
- Inherits:
-
Object
- Object
- SiSU_XML_Docbook_Book::Source
- Defined in:
- lib/sisu/xml_docbook5.rb
Direct Known Subclasses
Defined Under Namespace
Classes: Scroll
Instance Method Summary collapse
-
#initialize(opt) ⇒ Source
constructor
A new instance of Source.
- #read ⇒ Object
Constructor Details
#initialize(opt) ⇒ Source
Returns a new instance of Source.
69 70 71 72 |
# File 'lib/sisu/xml_docbook5.rb', line 69 def initialize(opt) @opt=opt @particulars=SiSU_Particulars::CombinedSingleton.instance.get_all(opt) end |
Instance Method Details
#read ⇒ Object
73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 |
# File 'lib/sisu/xml_docbook5.rb', line 73 def read begin @md,@ao_array=@particulars.md,@particulars.ao_array @env=@particulars.env report SiSU_XML_Docbook_Book::Source::Scroll.new(@ao_array,@md).songsheet rescue SiSU_Errors::Rescued.new($!,$@,@opt.selections.str,@opt.fns).location do __LINE__.to_s + ':' + __FILE__ end ensure #SiSU_Env::CreateSite.new(@opt.selections.str).cp_css #SiSU_Env::CreateSite.new(@opt.selections.str).cp_base_images Dir.chdir(@opt.f_pth[:pth]) end end |