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.



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

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.



237
238
239
# File 'lib/sisu/xhtml_epub2_persist.rb', line 237

def ncx
  @ncx
end

#opfObject

Returns the value of attribute opf.



237
238
239
# File 'lib/sisu/xhtml_epub2_persist.rb', line 237

def opf
  @opf
end

#scrObject

Returns the value of attribute scr.



237
238
239
# File 'lib/sisu/xhtml_epub2_persist.rb', line 237

def scr
  @scr
end

#segObject

Returns the value of attribute seg.



237
238
239
# File 'lib/sisu/xhtml_epub2_persist.rb', line 237

def seg
  @seg
end

#seg_miniObject

Returns the value of attribute seg_mini.



237
238
239
# File 'lib/sisu/xhtml_epub2_persist.rb', line 237

def seg_mini
  @seg_mini
end

Instance Method Details

#persist_initObject



270
271
272
273
# File 'lib/sisu/xhtml_epub2_persist.rb', line 270

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

#persist_init_hash_valuesObject



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

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