Module: OpenXml::HasAttributes
- Included in:
- Element
- 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
4 5 6 |
# File 'lib/openxml/has_attributes.rb', line 4 def self.included(base) base.extend(ClassMethods) end |
Instance Method Details
#attributes ⇒ Object
41 42 43 |
# File 'lib/openxml/has_attributes.rb', line 41 def attributes self.class.attributes end |
#render? ⇒ Boolean
37 38 39 |
# File 'lib/openxml/has_attributes.rb', line 37 def render? attributes.keys.map(&method(:send)).any? end |