Class: SiSU_XHTML_EPUB2_Persist::Persist
- Inherits:
-
Object
- Object
- SiSU_XHTML_EPUB2_Persist::Persist
- Defined in:
- lib/sisu/xhtml_epub2_persist.rb
Constant Summary collapse
- @@persist =
nil
Instance Attribute Summary collapse
-
#closed ⇒ Object
Returns the value of attribute closed.
-
#credits ⇒ Object
Returns the value of attribute credits.
-
#endnote_all ⇒ Object
Returns the value of attribute endnote_all.
-
#fn ⇒ Object
Returns the value of attribute fn.
-
#get_hash_fn ⇒ Object
Returns the value of attribute get_hash_fn.
-
#get_hash_to ⇒ Object
Returns the value of attribute get_hash_to.
-
#heading0 ⇒ Object
Returns the value of attribute heading0.
-
#heading1 ⇒ Object
Returns the value of attribute heading1.
-
#heading2 ⇒ Object
Returns the value of attribute heading2.
-
#heading3 ⇒ Object
Returns the value of attribute heading3.
-
#heading4 ⇒ Object
Returns the value of attribute heading4.
-
#heading_endnotes ⇒ Object
Returns the value of attribute heading_endnotes.
-
#heading_idx ⇒ Object
Returns the value of attribute heading_idx.
-
#headings ⇒ Object
Returns the value of attribute headings.
-
#idx ⇒ Object
Returns the value of attribute idx.
-
#is0 ⇒ Object
Returns the value of attribute is0.
-
#is1 ⇒ Object
Returns the value of attribute is1.
-
#is2 ⇒ Object
Returns the value of attribute is2.
-
#is3 ⇒ Object
Returns the value of attribute is3.
-
#is4 ⇒ Object
Returns the value of attribute is4.
-
#main ⇒ Object
Returns the value of attribute main.
-
#nav ⇒ Object
Returns the value of attribute nav.
-
#seg_endnotes ⇒ Object
Returns the value of attribute seg_endnotes.
-
#seg_endnotes_array ⇒ Object
Returns the value of attribute seg_endnotes_array.
-
#seg_name ⇒ Object
Returns the value of attribute seg_name.
-
#seg_name_x ⇒ Object
Returns the value of attribute seg_name_x.
-
#seg_name_x_tracker ⇒ Object
Returns the value of attribute seg_name_x_tracker.
-
#seg_subtoc ⇒ Object
Returns the value of attribute seg_subtoc.
-
#seg_subtoc_array ⇒ Object
Returns the value of attribute seg_subtoc_array.
-
#tail ⇒ Object
Returns the value of attribute tail.
-
#title ⇒ Object
Returns the value of attribute title.
-
#tocband_banner ⇒ Object
Returns the value of attribute tocband_banner.
-
#tocband_bannerless ⇒ Object
Returns the value of attribute tocband_bannerless.
Instance Method Summary collapse
-
#initialize(args = nil) ⇒ Persist
constructor
A new instance of Persist.
- #persist_init ⇒ Object
- #persist_init_hash_values ⇒ Object
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/xhtml_epub2_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] @nav=args[: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] @closed=args[:closed] @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] @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
#closed ⇒ Object
Returns the value of attribute closed.
58 59 60 |
# File 'lib/sisu/xhtml_epub2_persist.rb', line 58 def closed @closed end |
#credits ⇒ Object
Returns the value of attribute credits.
58 59 60 |
# File 'lib/sisu/xhtml_epub2_persist.rb', line 58 def credits @credits end |
#endnote_all ⇒ Object
Returns the value of attribute endnote_all.
58 59 60 |
# File 'lib/sisu/xhtml_epub2_persist.rb', line 58 def endnote_all @endnote_all end |
#fn ⇒ Object
Returns the value of attribute fn.
58 59 60 |
# File 'lib/sisu/xhtml_epub2_persist.rb', line 58 def fn @fn end |
#get_hash_fn ⇒ Object
Returns the value of attribute get_hash_fn.
58 59 60 |
# File 'lib/sisu/xhtml_epub2_persist.rb', line 58 def get_hash_fn @get_hash_fn end |
#get_hash_to ⇒ Object
Returns the value of attribute get_hash_to.
58 59 60 |
# File 'lib/sisu/xhtml_epub2_persist.rb', line 58 def get_hash_to @get_hash_to end |
#heading0 ⇒ Object
Returns the value of attribute heading0.
58 59 60 |
# File 'lib/sisu/xhtml_epub2_persist.rb', line 58 def heading0 @heading0 end |
#heading1 ⇒ Object
Returns the value of attribute heading1.
58 59 60 |
# File 'lib/sisu/xhtml_epub2_persist.rb', line 58 def heading1 @heading1 end |
#heading2 ⇒ Object
Returns the value of attribute heading2.
58 59 60 |
# File 'lib/sisu/xhtml_epub2_persist.rb', line 58 def heading2 @heading2 end |
#heading3 ⇒ Object
Returns the value of attribute heading3.
58 59 60 |
# File 'lib/sisu/xhtml_epub2_persist.rb', line 58 def heading3 @heading3 end |
#heading4 ⇒ Object
Returns the value of attribute heading4.
58 59 60 |
# File 'lib/sisu/xhtml_epub2_persist.rb', line 58 def heading4 @heading4 end |
#heading_endnotes ⇒ Object
Returns the value of attribute heading_endnotes.
58 59 60 |
# File 'lib/sisu/xhtml_epub2_persist.rb', line 58 def heading_endnotes @heading_endnotes end |
#heading_idx ⇒ Object
Returns the value of attribute heading_idx.
58 59 60 |
# File 'lib/sisu/xhtml_epub2_persist.rb', line 58 def heading_idx @heading_idx end |
#headings ⇒ Object
Returns the value of attribute headings.
58 59 60 |
# File 'lib/sisu/xhtml_epub2_persist.rb', line 58 def headings @headings end |
#idx ⇒ Object
Returns the value of attribute idx.
58 59 60 |
# File 'lib/sisu/xhtml_epub2_persist.rb', line 58 def idx @idx end |
#is0 ⇒ Object
Returns the value of attribute is0.
58 59 60 |
# File 'lib/sisu/xhtml_epub2_persist.rb', line 58 def is0 @is0 end |
#is1 ⇒ Object
Returns the value of attribute is1.
58 59 60 |
# File 'lib/sisu/xhtml_epub2_persist.rb', line 58 def is1 @is1 end |
#is2 ⇒ Object
Returns the value of attribute is2.
58 59 60 |
# File 'lib/sisu/xhtml_epub2_persist.rb', line 58 def is2 @is2 end |
#is3 ⇒ Object
Returns the value of attribute is3.
58 59 60 |
# File 'lib/sisu/xhtml_epub2_persist.rb', line 58 def is3 @is3 end |
#is4 ⇒ Object
Returns the value of attribute is4.
58 59 60 |
# File 'lib/sisu/xhtml_epub2_persist.rb', line 58 def is4 @is4 end |
#main ⇒ Object
Returns the value of attribute main.
58 59 60 |
# File 'lib/sisu/xhtml_epub2_persist.rb', line 58 def main @main end |
#nav ⇒ Object
Returns the value of attribute nav.
58 59 60 |
# File 'lib/sisu/xhtml_epub2_persist.rb', line 58 def nav @nav end |
#seg_endnotes ⇒ Object
Returns the value of attribute seg_endnotes.
58 59 60 |
# File 'lib/sisu/xhtml_epub2_persist.rb', line 58 def seg_endnotes @seg_endnotes end |
#seg_endnotes_array ⇒ Object
Returns the value of attribute seg_endnotes_array.
58 59 60 |
# File 'lib/sisu/xhtml_epub2_persist.rb', line 58 def seg_endnotes_array @seg_endnotes_array end |
#seg_name ⇒ Object
Returns the value of attribute seg_name.
58 59 60 |
# File 'lib/sisu/xhtml_epub2_persist.rb', line 58 def seg_name @seg_name end |
#seg_name_x ⇒ Object
Returns the value of attribute seg_name_x.
58 59 60 |
# File 'lib/sisu/xhtml_epub2_persist.rb', line 58 def seg_name_x @seg_name_x end |
#seg_name_x_tracker ⇒ Object
Returns the value of attribute seg_name_x_tracker.
58 59 60 |
# File 'lib/sisu/xhtml_epub2_persist.rb', line 58 def seg_name_x_tracker @seg_name_x_tracker end |
#seg_subtoc ⇒ Object
Returns the value of attribute seg_subtoc.
58 59 60 |
# File 'lib/sisu/xhtml_epub2_persist.rb', line 58 def seg_subtoc @seg_subtoc end |
#seg_subtoc_array ⇒ Object
Returns the value of attribute seg_subtoc_array.
58 59 60 |
# File 'lib/sisu/xhtml_epub2_persist.rb', line 58 def seg_subtoc_array @seg_subtoc_array end |
#tail ⇒ Object
Returns the value of attribute tail.
58 59 60 |
# File 'lib/sisu/xhtml_epub2_persist.rb', line 58 def tail @tail end |
#title ⇒ Object
Returns the value of attribute title.
58 59 60 |
# File 'lib/sisu/xhtml_epub2_persist.rb', line 58 def title @title end |
#tocband_banner ⇒ Object
Returns the value of attribute tocband_banner.
58 59 60 |
# File 'lib/sisu/xhtml_epub2_persist.rb', line 58 def @tocband_banner end |
#tocband_bannerless ⇒ Object
Returns the value of attribute tocband_bannerless.
58 59 60 |
# File 'lib/sisu/xhtml_epub2_persist.rb', line 58 def @tocband_bannerless end |
Instance Method Details
#persist_init ⇒ Object
230 231 232 233 |
# File 'lib/sisu/xhtml_epub2_persist.rb', line 230 def persist_init @@persist=nil Persist.new(persist_init_hash_values) end |
#persist_init_hash_values ⇒ Object
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 229 |
# File 'lib/sisu/xhtml_epub2_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: [], nav: [], headings: [], main: [], idx: [], tail: [], credits: [], endnote_all: [], heading_endnotes: '', seg_endnotes: {}, seg_endnotes_array: [], closed: [], get_hash_fn: '', get_hash_to: '', seg_subtoc: {}, seg_subtoc_array: [], fn: '', seg_name: [], seg_name_x: [], seg_name_x_tracker: 0, } end |