Class: EPUB::OCF::Container

Inherits:
Object
  • Object
show all
Defined in:
lib/epub/ocf/container.rb

Defined Under Namespace

Classes: Rootfile

Constant Summary collapse

FILE =
'container.xml'

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeContainer

Returns a new instance of Container



8
9
10
# File 'lib/epub/ocf/container.rb', line 8

def initialize
  @rootfiles = []
end

Instance Attribute Details

#rootfilesObject (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

#rootfileObject

syntax sugar



13
14
15
# File 'lib/epub/ocf/container.rb', line 13

def rootfile
  rootfiles.first
end