module Axlsx::SerializedAttributes::ClassMethods

class methods applied to all includers

Attributes

xml_attributes[R]

a reader for those attributes

xml_element_attributes[R]

attr reader for element attributes

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 24
def serializable_element_attributes(*symbols)
  @xml_element_attributes = symbols
end