Module: LaserLemon::DrySerial::XmlSerializer

Defined in:
lib/serialization.rb

Defined Under Namespace

Modules: Attribute

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.included(base) ⇒ Object



40
41
42
# File 'lib/serialization.rb', line 40

def self.included(base)
  base.alias_method_chain :add_attributes, :breakfast
end

Instance Method Details

#add_attributes_with_breakfastObject



44
45
46
47
48
# File 'lib/serialization.rb', line 44

def add_attributes_with_breakfast
  (serializable_attributes + serializable_method_attributes).sort.each do |attribute|
    add_tag(attribute)
  end
end