Module: Axlsx::SerializedAttributes::ClassMethods
- Defined in:
- lib/axlsx/util/serialized_attributes.rb
Overview
class methods applied to all includers
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.
-
#xml_attributes ⇒ Object
a reader for those attributes.
-
#xml_element_attributes ⇒ Object
attr reader for element attributes.
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
16 17 18 |
# File 'lib/axlsx/util/serialized_attributes.rb', line 16 def serializable_attributes(*symbols) @xml_attributes = symbols end |
#serializable_element_attributes(*symbols) ⇒ Object
This helper registers the attributes that will be formatted as elements.
26 27 28 |
# File 'lib/axlsx/util/serialized_attributes.rb', line 26 def serializable_element_attributes(*symbols) @xml_element_attributes = symbols end |
#xml_attributes ⇒ Object
a reader for those attributes
21 22 23 |
# File 'lib/axlsx/util/serialized_attributes.rb', line 21 def xml_attributes @xml_attributes end |
#xml_element_attributes ⇒ Object
attr reader for element attributes
31 32 33 |
# File 'lib/axlsx/util/serialized_attributes.rb', line 31 def xml_element_attributes @xml_element_attributes end |