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



4
5
6
# File 'lib/openxml/has_attributes.rb', line 4

def self.included(base)
  base.extend(ClassMethods)
end

Instance Method Details

#attributesObject



56
57
58
# File 'lib/openxml/has_attributes.rb', line 56

def attributes
  self.class.attributes
end

#render?Boolean

Returns:

  • (Boolean)


52
53
54
# File 'lib/openxml/has_attributes.rb', line 52

def render?
  attributes.keys.map(&method(:send)).any?
end