Module: Axlsx::SerializedAttributes::ClassMethods
- Defined in:
- lib/axlsx/util/serialized_attributes.rb
Overview
class methods applied to all includers
Instance Attribute Summary collapse
-
#xml_attributes ⇒ Object
readonly
a reader for those attributes.
-
#xml_element_attributes ⇒ Object
readonly
attr reader for element attributes.
Instance Method Summary collapse
-
#serializable_attributes(*symbols) ⇒ Object
This is the method to be used in inheriting classes to specify which of the instance values are serializable.
-
#serializable_element_attributes(*symbols) ⇒ Object
This helper registers the attributes that will be formatted as elements.
Instance Attribute Details
#xml_attributes ⇒ Object (readonly)
a reader for those attributes
19 20 21 |
# File 'lib/axlsx/util/serialized_attributes.rb', line 19 def xml_attributes @xml_attributes end |
#xml_element_attributes ⇒ Object (readonly)
attr reader for element attributes
27 28 29 |
# File 'lib/axlsx/util/serialized_attributes.rb', line 27 def xml_element_attributes @xml_element_attributes end |
Instance Method Details
#serializable_attributes(*symbols) ⇒ Object
This is the method to be used in inheriting classes to specify which of the instance values are serializable
14 15 16 |
# File 'lib/axlsx/util/serialized_attributes.rb', line 14 def serializable_attributes(*symbols) @xml_attributes = symbols end |
#serializable_element_attributes(*symbols) ⇒ Object
This helper registers the attributes that will be formatted as elements.
22 23 24 |
# File 'lib/axlsx/util/serialized_attributes.rb', line 22 def serializable_element_attributes(*symbols) @xml_element_attributes = symbols end |