Module: Thepub::Epub::ContainerItem
Overview
Mixin for stuff that can be added to the ePub package
Instance Attribute Summary collapse
-
#file_path ⇒ Object
Returns the value of attribute file_path.
-
#media_type ⇒ Object
Returns the value of attribute media_type.
Instance Method Summary collapse
Instance Attribute Details
#file_path ⇒ Object
Returns the value of attribute file_path.
9 10 11 |
# File 'lib/thepub/epub/container_item.rb', line 9 def file_path @file_path end |
#media_type ⇒ Object
Returns the value of attribute media_type.
10 11 12 |
# File 'lib/thepub/epub/container_item.rb', line 10 def media_type @media_type end |
Instance Method Details
#document? ⇒ Boolean
12 13 14 |
# File 'lib/thepub/epub/container_item.rb', line 12 def document? ['application/xhtml+xml', 'application/x-dtbook+xml'].include? self.media_type end |