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.
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
#ncx ⇒ Object
Returns the value of attribute ncx.
237 238 239 |
# File 'lib/sisu/xhtml_epub2_persist.rb', line 237 def ncx @ncx end |
#opf ⇒ Object
Returns the value of attribute opf.
237 238 239 |
# File 'lib/sisu/xhtml_epub2_persist.rb', line 237 def opf @opf end |
#scr ⇒ Object
Returns the value of attribute scr.
237 238 239 |
# File 'lib/sisu/xhtml_epub2_persist.rb', line 237 def scr @scr end |
#seg ⇒ Object
Returns the value of attribute seg.
237 238 239 |
# File 'lib/sisu/xhtml_epub2_persist.rb', line 237 def seg @seg end |
#seg_mini ⇒ Object
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_init ⇒ Object
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_values ⇒ Object
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 |