Class: SiSU_XHTML_EPUB2_Persist::PersistTOC

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

Constant Summary collapse

@@persist =
nil

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(args = nil) ⇒ PersistTOC

Returns a new instance of PersistTOC.



240
241
242
243
244
245
246
247
# File 'lib/sisu/xhtml_epub2_persist.rb', line 240

def initialize(args=nil)
  @@persist=args=(args ? args : (@@persist || persist_init_hash_values))
  @seg=args[:seg]
  @seg_mini=args[:seg_mini]
  @scr=args[:scr]
  @ncx=args[:ncx]
  @opf=args[:opf]
end

Instance Attribute Details

#ncxObject

Returns the value of attribute ncx.



239
240
241
# File 'lib/sisu/xhtml_epub2_persist.rb', line 239

def ncx
  @ncx
end

#opfObject

Returns the value of attribute opf.



239
240
241
# File 'lib/sisu/xhtml_epub2_persist.rb', line 239

def opf
  @opf
end

#scrObject

Returns the value of attribute scr.



239
240
241
# File 'lib/sisu/xhtml_epub2_persist.rb', line 239

def scr
  @scr
end

#segObject

Returns the value of attribute seg.



239
240
241
# File 'lib/sisu/xhtml_epub2_persist.rb', line 239

def seg
  @seg
end

#seg_miniObject

Returns the value of attribute seg_mini.



239
240
241
# File 'lib/sisu/xhtml_epub2_persist.rb', line 239

def seg_mini
  @seg_mini
end

Instance Method Details

#persist_initObject



272
273
274
275
# File 'lib/sisu/xhtml_epub2_persist.rb', line 272

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

#persist_init_hash_valuesObject



263
264
265
266
267
268
269
270
271
# File 'lib/sisu/xhtml_epub2_persist.rb', line 263

def persist_init_hash_values
  {
    seg: [],
    seg_mini: [],
    scr: [],
    ncx: [],
    opf: [],
  }
end