Class: SiSU_XHTML_EPUB2_Persist::PersistTOC
- Inherits:
-
Object
- Object
- SiSU_XHTML_EPUB2_Persist::PersistTOC
- Defined in:
- lib/sisu/xhtml_epub2_persist.rb
Constant Summary collapse
- @@persist =
nil
Instance Attribute Summary collapse
-
#ncx ⇒ Object
Returns the value of attribute ncx.
-
#opf ⇒ Object
Returns the value of attribute opf.
-
#scr ⇒ Object
Returns the value of attribute scr.
-
#seg ⇒ Object
Returns the value of attribute seg.
-
#seg_mini ⇒ Object
Returns the value of attribute seg_mini.
Instance Method Summary collapse
-
#initialize(args = nil) ⇒ PersistTOC
constructor
A new instance of PersistTOC.
- #persist_init ⇒ Object
- #persist_init_hash_values ⇒ Object
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
#ncx ⇒ Object
Returns the value of attribute ncx.
239 240 241 |
# File 'lib/sisu/xhtml_epub2_persist.rb', line 239 def ncx @ncx end |
#opf ⇒ Object
Returns the value of attribute opf.
239 240 241 |
# File 'lib/sisu/xhtml_epub2_persist.rb', line 239 def opf @opf end |
#scr ⇒ Object
Returns the value of attribute scr.
239 240 241 |
# File 'lib/sisu/xhtml_epub2_persist.rb', line 239 def scr @scr end |
#seg ⇒ Object
Returns the value of attribute seg.
239 240 241 |
# File 'lib/sisu/xhtml_epub2_persist.rb', line 239 def seg @seg end |
#seg_mini ⇒ Object
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_init ⇒ Object
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_values ⇒ Object
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 |