Module: LaserLemon::HotSerial::XmlSerializer

Defined in:
lib/serializer.rb

Defined Under Namespace

Modules: Attribute

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.included(base) ⇒ Object



57
58
59
60
# File 'lib/serializer.rb', line 57

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

Instance Method Details

#add_attributes_with_breakfastObject



62
63
64
65
66
# File 'lib/serializer.rb', line 62

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