Class: OpenXml::Properties::ComplexProperty
- Inherits:
-
BaseProperty
- Object
- BaseProperty
- OpenXml::Properties::ComplexProperty
- Includes:
- HasAttributes
- Defined in:
- lib/openxml/properties/complex_property.rb
Instance Attribute Summary
Attributes inherited from BaseProperty
Instance Method Summary collapse
Methods included from HasAttributes
#attributes, included, #required_attributes
Methods inherited from BaseProperty
#default_name, #default_tag, #initialize, name, #name, namespace, #namespace, #tag, tag, tag_is_one_of, #validate_tag
Constructor Details
This class inherits a constructor from OpenXml::Properties::BaseProperty
Instance Method Details
#render? ⇒ Boolean
15 16 17 |
# File 'lib/openxml/properties/complex_property.rb', line 15 def render? !xml_attributes.empty? end |
#to_xml(xml) ⇒ Object
8 9 10 11 12 13 |
# File 'lib/openxml/properties/complex_property.rb', line 8 def to_xml(xml) return unless render? apply_namespace(xml).public_send(tag, xml_attributes) do yield xml if block_given? end end |