Class: SiSU_XHTML_EPUB2_Seg::Seg
- Inherits:
-
Object
- Object
- SiSU_XHTML_EPUB2_Seg::Seg
- Defined in:
- lib/sisu/xhtml_epub2_segments.rb
Direct Known Subclasses
Constant Summary collapse
- @@seg_name =
[]
- @@seg_url =
''
- @@tracker =
0
Instance Attribute Summary collapse
-
#seg_name_x ⇒ Object
readonly
Returns the value of attribute seg_name_x.
-
#seg_name_x_tracker ⇒ Object
readonly
Returns the value of attribute seg_name_x_tracker.
Instance Method Summary collapse
-
#initialize(md = '', data = '') ⇒ Seg
constructor
A new instance of Seg.
- #songsheet ⇒ Object
Constructor Details
#initialize(md = '', data = '') ⇒ Seg
Returns a new instance of Seg.
158 159 160 161 162 163 164 |
# File 'lib/sisu/xhtml_epub2_segments.rb', line 158 def initialize(md='',data='') @md,@data=md,data @per=SiSU_XHTML_EPUB2_Persist::Persist.new @seg_name_x=@per.seg_name_x=(@@seg_name || []) @seg_name_x_tracker=@per.seg_name_x_tracker=(@@tracker || 0) @make=SiSU_Env::ProcessingSettings.new(@md) if @md end |
Instance Attribute Details
#seg_name_x ⇒ Object (readonly)
Returns the value of attribute seg_name_x.
157 158 159 |
# File 'lib/sisu/xhtml_epub2_segments.rb', line 157 def seg_name_x @seg_name_x end |
#seg_name_x_tracker ⇒ Object (readonly)
Returns the value of attribute seg_name_x_tracker.
157 158 159 |
# File 'lib/sisu/xhtml_epub2_segments.rb', line 157 def seg_name_x_tracker @seg_name_x_tracker end |
Instance Method Details
#songsheet ⇒ Object
165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 |
# File 'lib/sisu/xhtml_epub2_segments.rb', line 165 def songsheet begin data=get_subtoc_endnotes(@data,@per) data=articles(data,@per) SiSU_XHTML_EPUB2_Seg::Seg.new.cleanup(@md,@per) # (((( added )))) #### (((( END )))) #### rescue SiSU_Errors::Rescued.new($!,$@,@md.opt.selections.str,@md.fns).location do __LINE__.to_s + ':' + __FILE__ end ensure SiSU_XHTML_EPUB2_Persist::Persist.new.persist_init @@seg_name=@per.seg_name=[] end end |