Class: Nation
- Inherits:
-
Object
- Object
- Nation
- Includes:
- Geopolitocracy, Mongoid::Document
- Defined in:
- app/models/nation.rb
Overview
Nation/Country/Flag
Instance Method Summary collapse
Instance Method Details
#<=>(other) ⇒ Object
39 40 41 |
# File 'app/models/nation.rb', line 39 def <=>(other) name <=> other.name end |
#==(other) ⇒ Object
34 35 36 37 |
# File 'app/models/nation.rb', line 34 def ==(other) return unless other abbr == other.abbr end |
#abbr=(txt) ⇒ Object
30 31 32 |
# File 'app/models/nation.rb', line 30 def abbr=(txt) self[:abbr] = txt && txt.upcase end |