Class: SiSU_HTML_Seg::Seg

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

Direct Known Subclasses

SiSU_HTML::Source::Seg

Constant Summary collapse

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(md = nil, data = '') ⇒ Seg

Returns a new instance of Seg.



180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
# File 'lib/sisu/html_segments.rb', line 180

def initialize(md=nil,data='')
  @md,@data=md,data
  @per=SiSU_HTML_Persist::Persist.new
  @seg_name_x=@per.seg_name_x=(@@seg_name || [])
  @seg_name_x_tracker=@per.seg_name_x_tracker=(@@tracker || 0)
  @env=SiSU_Env::InfoEnv.new(@md.fns) if @md
  if @md
    @make=SiSU_Env::ProcessingSettings.new(@md)
    @cl=(@make.build.html_minitoc?) \
    ? 'content'
    : 'content0'
  else @cl='content'
  end
  if @md
    @title_banner_=SiSU_Env::CreateSite.new(@md.opt).html_seg_title_banner?
  end
end

Instance Attribute Details

#seg_name_xObject (readonly)

Returns the value of attribute seg_name_x.



179
180
181
# File 'lib/sisu/html_segments.rb', line 179

def seg_name_x
  @seg_name_x
end

#seg_name_x_trackerObject (readonly)

Returns the value of attribute seg_name_x_tracker.



179
180
181
# File 'lib/sisu/html_segments.rb', line 179

def seg_name_x_tracker
  @seg_name_x_tracker
end

Instance Method Details

#songsheetObject



197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
# File 'lib/sisu/html_segments.rb', line 197

def songsheet
  begin
    @minitoc=SiSU_HTML::Source::Toc.new(@md,@data).minitoc
    @per=SiSU_HTML_Persist::Persist.new
    data=get_subtoc_endnotes(@data,@per)
    data=articles(data,@per)
    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_HTML_Persist::Persist.new.persist_init
    @@seg_name=@per.seg_name=[]
  end
end