Class: SiSU_HTML_Persist::Persist

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

Constant Summary collapse

@@persist =
nil

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(args = nil) ⇒ Persist

Returns a new instance of Persist.



59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
# File 'lib/sisu/html_persist.rb', line 59

def initialize(args=nil)
  @@persist=args=(args ? args : (@@persist || persist_init_hash_values))
  @is0=args[:is0]
  @is1=args[:is1]
  @is2=args[:is2]
  @is3=args[:is3]
  @is4=args[:is4]
  @heading0=args[:heading0]
  @heading1=args[:heading1]
  @heading2=args[:heading2]
  @heading3=args[:heading3]
  @heading4=args[:heading4]
  @title=args[:title]
  @dot_nav=args[:dot_nav]
  @tocband_banner=args[:tocband_banner]
  @tocband_bannerless=args[:tocband_bannerless]
  @headings=args[:headings]
  @heading_endnotes=args[:heading_endnotes]
  @main=args[:main]
  @endnote_all=args[:endnote_all]
  @tail=args[:tail]
  @credits=args[:credits]
  @heading_idx=args[:heading_idx]
  @idx=args[:idx]
  @seg_endnotes=args[:seg_endnotes]
  @seg_endnotes_array=args[:seg_endnotes_array]
  @get_hash_to=args[:get_hash_to]
  @get_hash_fn=args[:get_hash_fn]
  @seg_subtoc=args[:seg_subtoc]
  @seg_subtoc_array=args[:seg_subtoc_array]
  @segtocband=args[:fn]
  @fn=args[:fn]
  @seg_name=args[:seg_name]
  @seg_name_x=args[:seg_name_x]
  @seg_name_x_tracker=args[:seg_name_x_tracker]
end

Instance Attribute Details

#creditsObject

Returns the value of attribute credits.



58
59
60
# File 'lib/sisu/html_persist.rb', line 58

def credits
  @credits
end

#dot_navObject

Returns the value of attribute dot_nav.



58
59
60
# File 'lib/sisu/html_persist.rb', line 58

def dot_nav
  @dot_nav
end

#endnote_allObject

Returns the value of attribute endnote_all.



58
59
60
# File 'lib/sisu/html_persist.rb', line 58

def endnote_all
  @endnote_all
end

#fnObject

Returns the value of attribute fn.



58
59
60
# File 'lib/sisu/html_persist.rb', line 58

def fn
  @fn
end

#get_hash_fnObject

Returns the value of attribute get_hash_fn.



58
59
60
# File 'lib/sisu/html_persist.rb', line 58

def get_hash_fn
  @get_hash_fn
end

#get_hash_toObject

Returns the value of attribute get_hash_to.



58
59
60
# File 'lib/sisu/html_persist.rb', line 58

def get_hash_to
  @get_hash_to
end

#heading0Object

Returns the value of attribute heading0.



58
59
60
# File 'lib/sisu/html_persist.rb', line 58

def heading0
  @heading0
end

#heading1Object

Returns the value of attribute heading1.



58
59
60
# File 'lib/sisu/html_persist.rb', line 58

def heading1
  @heading1
end

#heading2Object

Returns the value of attribute heading2.



58
59
60
# File 'lib/sisu/html_persist.rb', line 58

def heading2
  @heading2
end

#heading3Object

Returns the value of attribute heading3.



58
59
60
# File 'lib/sisu/html_persist.rb', line 58

def heading3
  @heading3
end

#heading4Object

Returns the value of attribute heading4.



58
59
60
# File 'lib/sisu/html_persist.rb', line 58

def heading4
  @heading4
end

#heading_endnotesObject

Returns the value of attribute heading_endnotes.



58
59
60
# File 'lib/sisu/html_persist.rb', line 58

def heading_endnotes
  @heading_endnotes
end

#heading_idxObject

Returns the value of attribute heading_idx.



58
59
60
# File 'lib/sisu/html_persist.rb', line 58

def heading_idx
  @heading_idx
end

#headingsObject

Returns the value of attribute headings.



58
59
60
# File 'lib/sisu/html_persist.rb', line 58

def headings
  @headings
end

#idxObject

Returns the value of attribute idx.



58
59
60
# File 'lib/sisu/html_persist.rb', line 58

def idx
  @idx
end

#is0Object

Returns the value of attribute is0.



58
59
60
# File 'lib/sisu/html_persist.rb', line 58

def is0
  @is0
end

#is1Object

Returns the value of attribute is1.



58
59
60
# File 'lib/sisu/html_persist.rb', line 58

def is1
  @is1
end

#is2Object

Returns the value of attribute is2.



58
59
60
# File 'lib/sisu/html_persist.rb', line 58

def is2
  @is2
end

#is3Object

Returns the value of attribute is3.



58
59
60
# File 'lib/sisu/html_persist.rb', line 58

def is3
  @is3
end

#is4Object

Returns the value of attribute is4.



58
59
60
# File 'lib/sisu/html_persist.rb', line 58

def is4
  @is4
end

#mainObject

Returns the value of attribute main.



58
59
60
# File 'lib/sisu/html_persist.rb', line 58

def main
  @main
end

#seg_endnotesObject

Returns the value of attribute seg_endnotes.



58
59
60
# File 'lib/sisu/html_persist.rb', line 58

def seg_endnotes
  @seg_endnotes
end

#seg_endnotes_arrayObject

Returns the value of attribute seg_endnotes_array.



58
59
60
# File 'lib/sisu/html_persist.rb', line 58

def seg_endnotes_array
  @seg_endnotes_array
end

#seg_nameObject

Returns the value of attribute seg_name.



58
59
60
# File 'lib/sisu/html_persist.rb', line 58

def seg_name
  @seg_name
end

#seg_name_xObject

Returns the value of attribute seg_name_x.



58
59
60
# File 'lib/sisu/html_persist.rb', line 58

def seg_name_x
  @seg_name_x
end

#seg_name_x_trackerObject

Returns the value of attribute seg_name_x_tracker.



58
59
60
# File 'lib/sisu/html_persist.rb', line 58

def seg_name_x_tracker
  @seg_name_x_tracker
end

#seg_subtocObject

Returns the value of attribute seg_subtoc.



58
59
60
# File 'lib/sisu/html_persist.rb', line 58

def seg_subtoc
  @seg_subtoc
end

#seg_subtoc_arrayObject

Returns the value of attribute seg_subtoc_array.



58
59
60
# File 'lib/sisu/html_persist.rb', line 58

def seg_subtoc_array
  @seg_subtoc_array
end

#segtocbandObject

Returns the value of attribute segtocband.



58
59
60
# File 'lib/sisu/html_persist.rb', line 58

def segtocband
  @segtocband
end

#tailObject

Returns the value of attribute tail.



58
59
60
# File 'lib/sisu/html_persist.rb', line 58

def tail
  @tail
end

#titleObject

Returns the value of attribute title.



58
59
60
# File 'lib/sisu/html_persist.rb', line 58

def title
  @title
end

#tocband_bannerObject

Returns the value of attribute tocband_banner.



58
59
60
# File 'lib/sisu/html_persist.rb', line 58

def tocband_banner
  @tocband_banner
end

#tocband_bannerlessObject

Returns the value of attribute tocband_bannerless.



58
59
60
# File 'lib/sisu/html_persist.rb', line 58

def tocband_bannerless
  @tocband_bannerless
end

Instance Method Details

#persist_initObject



229
230
231
232
# File 'lib/sisu/html_persist.rb', line 229

def persist_init
  @@persist=nil
  Persist.new(persist_init_hash_values)
end

#persist_init_hash_valuesObject



194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
# File 'lib/sisu/html_persist.rb', line 194

def persist_init_hash_values
  {
    is0: 0,
    is1: 0,
    is2: 0,
    is3: 0,
    is4: 0,
    heading0: '',
    heading1: '',
    heading2: '',
    heading3: '',
    heading4: '',
    tocband_banner: [],
    tocband_bannerless: [],
    title: [],
    headings: [],
    main: [],
    idx: [],
    tail: [],
    credits: [],
    endnote_all: [],
    heading_endnotes: '',
    seg_endnotes: {},
    seg_endnotes_array: [],
    get_hash_fn: '',
    get_hash_to: '',
    seg_subtoc: {},
    seg_subtoc_array: [],
    segtocband: '',
    fn: '',
    seg_name: [],
    seg_name_x: [],
    seg_name_x_tracker: 0,
  }
end