Class: Country

Inherits:
ActiveRecord::Base
  • Object
show all
Defined in:
app/models/country.rb

Instance Method Summary collapse

Instance Method Details

#<=>(other) ⇒ Object



11
12
13
# File 'app/models/country.rb', line 11

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

#to_sObject



15
16
17
# File 'app/models/country.rb', line 15

def to_s
  name
end