Class: Idml::Parts::Story
- Inherits:
-
Lutaml::Model::Serializable
- Object
- Lutaml::Model::Serializable
- Idml::Parts::Story
- Includes:
- Idml::Part
- Defined in:
- lib/idml/parts/story.rb
Overview
Typed model for Stories/Story_*.xml. The file's root is
<idPkg:Story> (wrapper, DOMVersion); the inner <Story Self="...">
holds the actual content. Both are typed — inner is a StoryInner
instance with full paragraph/character style run coverage.
Instance Method Summary collapse
Instance Method Details
#each_xml_element ⇒ Object
32 33 34 35 36 |
# File 'lib/idml/parts/story.rb', line 32 def each_xml_element(&) return enum_for(:each_xml_element) unless block_given? && inner inner.each_xml_element(&) end |
#self_id ⇒ Object
24 25 26 |
# File 'lib/idml/parts/story.rb', line 24 def self_id inner&.self_attr end |
#text_content ⇒ Object
28 29 30 |
# File 'lib/idml/parts/story.rb', line 28 def text_content inner&.text_content.to_s end |