Class: SiSU_XHTML_EPUB2_Seg::Seg

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

Direct Known Subclasses

SiSU_XHTML_EPUB2::Source::Seg

Constant Summary collapse

@@seg_name =
[]
@@seg_url =
''
@@tracker =
0

Instance Attribute Summary collapse

Instance Method Summary collapse

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_xObject (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_trackerObject (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

#songsheetObject



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