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.



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
95
96
# File 'lib/sisu/html_persist.rb', line 61

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.



60
61
62
# File 'lib/sisu/html_persist.rb', line 60

def credits
  @credits
end

#dot_navObject

Returns the value of attribute dot_nav.



60
61
62
# File 'lib/sisu/html_persist.rb', line 60

def dot_nav
  @dot_nav
end

#endnote_allObject

Returns the value of attribute endnote_all.



60
61
62
# File 'lib/sisu/html_persist.rb', line 60

def endnote_all
  @endnote_all
end

#fnObject

Returns the value of attribute fn.



60
61
62
# File 'lib/sisu/html_persist.rb', line 60

def fn
  @fn
end

#get_hash_fnObject

Returns the value of attribute get_hash_fn.



60
61
62
# File 'lib/sisu/html_persist.rb', line 60

def get_hash_fn
  @get_hash_fn
end

#get_hash_toObject

Returns the value of attribute get_hash_to.



60
61
62
# File 'lib/sisu/html_persist.rb', line 60

def get_hash_to
  @get_hash_to
end

#heading0Object

Returns the value of attribute heading0.



60
61
62
# File 'lib/sisu/html_persist.rb', line 60

def heading0
  @heading0
end

#heading1Object

Returns the value of attribute heading1.



60
61
62
# File 'lib/sisu/html_persist.rb', line 60

def heading1
  @heading1
end

#heading2Object

Returns the value of attribute heading2.



60
61
62
# File 'lib/sisu/html_persist.rb', line 60

def heading2
  @heading2
end

#heading3Object

Returns the value of attribute heading3.



60
61
62
# File 'lib/sisu/html_persist.rb', line 60

def heading3
  @heading3
end

#heading4Object

Returns the value of attribute heading4.



60
61
62
# File 'lib/sisu/html_persist.rb', line 60

def heading4
  @heading4
end

#heading_endnotesObject

Returns the value of attribute heading_endnotes.



60
61
62
# File 'lib/sisu/html_persist.rb', line 60

def heading_endnotes
  @heading_endnotes
end

#heading_idxObject

Returns the value of attribute heading_idx.



60
61
62
# File 'lib/sisu/html_persist.rb', line 60

def heading_idx
  @heading_idx
end

#headingsObject

Returns the value of attribute headings.



60
61
62
# File 'lib/sisu/html_persist.rb', line 60

def headings
  @headings
end

#idxObject

Returns the value of attribute idx.



60
61
62
# File 'lib/sisu/html_persist.rb', line 60

def idx
  @idx
end

#is0Object

Returns the value of attribute is0.



60
61
62
# File 'lib/sisu/html_persist.rb', line 60

def is0
  @is0
end

#is1Object

Returns the value of attribute is1.



60
61
62
# File 'lib/sisu/html_persist.rb', line 60

def is1
  @is1
end

#is2Object

Returns the value of attribute is2.



60
61
62
# File 'lib/sisu/html_persist.rb', line 60

def is2
  @is2
end

#is3Object

Returns the value of attribute is3.



60
61
62
# File 'lib/sisu/html_persist.rb', line 60

def is3
  @is3
end

#is4Object

Returns the value of attribute is4.



60
61
62
# File 'lib/sisu/html_persist.rb', line 60

def is4
  @is4
end

#mainObject

Returns the value of attribute main.



60
61
62
# File 'lib/sisu/html_persist.rb', line 60

def main
  @main
end

#seg_endnotesObject

Returns the value of attribute seg_endnotes.



60
61
62
# File 'lib/sisu/html_persist.rb', line 60

def seg_endnotes
  @seg_endnotes
end

#seg_endnotes_arrayObject

Returns the value of attribute seg_endnotes_array.



60
61
62
# File 'lib/sisu/html_persist.rb', line 60

def seg_endnotes_array
  @seg_endnotes_array
end

#seg_nameObject

Returns the value of attribute seg_name.



60
61
62
# File 'lib/sisu/html_persist.rb', line 60

def seg_name
  @seg_name
end

#seg_name_xObject

Returns the value of attribute seg_name_x.



60
61
62
# File 'lib/sisu/html_persist.rb', line 60

def seg_name_x
  @seg_name_x
end

#seg_name_x_trackerObject

Returns the value of attribute seg_name_x_tracker.



60
61
62
# File 'lib/sisu/html_persist.rb', line 60

def seg_name_x_tracker
  @seg_name_x_tracker
end

#seg_subtocObject

Returns the value of attribute seg_subtoc.



60
61
62
# File 'lib/sisu/html_persist.rb', line 60

def seg_subtoc
  @seg_subtoc
end

#seg_subtoc_arrayObject

Returns the value of attribute seg_subtoc_array.



60
61
62
# File 'lib/sisu/html_persist.rb', line 60

def seg_subtoc_array
  @seg_subtoc_array
end

#segtocbandObject

Returns the value of attribute segtocband.



60
61
62
# File 'lib/sisu/html_persist.rb', line 60

def segtocband
  @segtocband
end

#tailObject

Returns the value of attribute tail.



60
61
62
# File 'lib/sisu/html_persist.rb', line 60

def tail
  @tail
end

#titleObject

Returns the value of attribute title.



60
61
62
# File 'lib/sisu/html_persist.rb', line 60

def title
  @title
end

#tocband_bannerObject

Returns the value of attribute tocband_banner.



60
61
62
# File 'lib/sisu/html_persist.rb', line 60

def tocband_banner
  @tocband_banner
end

#tocband_bannerlessObject

Returns the value of attribute tocband_bannerless.



60
61
62
# File 'lib/sisu/html_persist.rb', line 60

def tocband_bannerless
  @tocband_bannerless
end

Instance Method Details

#persist_initObject



231
232
233
234
# File 'lib/sisu/html_persist.rb', line 231

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

#persist_init_hash_valuesObject



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
229
230
# File 'lib/sisu/html_persist.rb', line 196

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