module Axlsx::SerializedAttributes::ClassMethods
class methods applied to all includers
Public Instance Methods
serializable_attributes(*symbols)
click to toggle source
This is the method to be used in inheriting classes to specify which of the instance values are serializable
# File lib/axlsx/util/serialized_attributes.rb, line 16 def serializable_attributes(*symbols) @xml_attributes = symbols end
serializable_element_attributes(*symbols)
click to toggle source
This helper registers the attributes that will be formatted as elements.
# File lib/axlsx/util/serialized_attributes.rb, line 26 def serializable_element_attributes(*symbols) @xml_element_attributes = symbols end
xml_attributes()
click to toggle source
a reader for those attributes
# File lib/axlsx/util/serialized_attributes.rb, line 21 def xml_attributes @xml_attributes end
xml_element_attributes()
click to toggle source
attr reader for element attributes
# File lib/axlsx/util/serialized_attributes.rb, line 31 def xml_element_attributes @xml_element_attributes end