Module: LaserLemon::HotSerial::XmlSerializer::Attribute

Defined in:
lib/serializer.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.included(base) ⇒ Object



69
70
71
72
# File 'lib/serializer.rb', line 69

def self.included(base)
  puts 'Attribute'
  base.send(:include, Comparable)
end

Instance Method Details

#<=>(other) ⇒ Object



74
75
76
# File 'lib/serializer.rb', line 74

def <=>(other)
  name.to_s <=> other.name.to_s
end