Class: Docbook::Elements::Para
- Inherits:
-
Lutaml::Model::Serializable
- Object
- Lutaml::Model::Serializable
- Docbook::Elements::Para
- Includes:
- DocbookElement
- Defined in:
- lib/docbook/elements/para.rb
Instance Method Summary collapse
Methods included from DocbookElement
#callout_marker?, #colsep, #content, #element_id, #fileref, #formal?, #frame, #has_title?, #imagedata, #imageobject, #index_term?, #indexterm, #info, #list_of_category, #media_children, #number, #numberable?, #numbering_role, #resolve_title, #rowsep, #section_like?, #stats_category, #text, #title, #titled?, #toc_children, #videoobject, #walk_children, #xml_id, #xref?
Instance Method Details
#try_add_inline(element) ⇒ Object
10 11 12 13 14 15 16 17 |
# File 'lib/docbook/elements/para.rb', line 10 def try_add_inline(element) attr_name = element.class.name.split("::").last.downcase return false unless self.class.attributes.key?(attr_name.to_sym) collection = send(attr_name) || send(:"#{attr_name}=", []) collection << element true end |