Class: EPUB::OCF::Container
- Inherits:
-
Object
- Object
- EPUB::OCF::Container
- Defined in:
- lib/epub/ocf/container.rb
Defined Under Namespace
Classes: Rootfile
Constant Summary collapse
- FILE =
'container.xml'
Instance Attribute Summary collapse
-
#rootfiles ⇒ Object
readonly
Returns the value of attribute rootfiles.
Instance Method Summary collapse
-
#initialize ⇒ Container
constructor
A new instance of Container.
-
#rootfile ⇒ Object
syntax sugar.
Constructor Details
#initialize ⇒ Container
Returns a new instance of Container.
8 9 10 |
# File 'lib/epub/ocf/container.rb', line 8 def initialize @rootfiles = [] end |
Instance Attribute Details
#rootfiles ⇒ Object (readonly)
Returns the value of attribute rootfiles.
6 7 8 |
# File 'lib/epub/ocf/container.rb', line 6 def rootfiles @rootfiles end |
Instance Method Details
#rootfile ⇒ Object
syntax sugar
13 14 15 |
# File 'lib/epub/ocf/container.rb', line 13 def rootfile rootfiles.first end |