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