Module: OpenXml::HasAttributes
- Included in:
- Element, Properties::ComplexProperty, Properties::ContainerProperty
- Defined in:
- lib/openxml/has_attributes.rb
Defined Under Namespace
Modules: ClassMethods
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.included(base) ⇒ Object
6 7 8 |
# File 'lib/openxml/has_attributes.rb', line 6 def self.included(base) base.extend(ClassMethods) end |
Instance Method Details
#attributes ⇒ Object
64 65 66 |
# File 'lib/openxml/has_attributes.rb', line 64 def attributes self.class.attributes end |
#render? ⇒ Boolean
60 61 62 |
# File 'lib/openxml/has_attributes.rb', line 60 def render? attributes.keys.map(&method(:send)).any? end |
#required_attributes ⇒ Object
68 69 70 |
# File 'lib/openxml/has_attributes.rb', line 68 def required_attributes self.class.required_attributes end |