Class: Language

Inherits:
ActiveRecordShared show all
Defined in:
app/models/language.rb

Overview

requires

* code ( unique ) * description ( unique and > 3 chars )

Instance Method Summary collapse

Instance Method Details

#is_other?Boolean

Returns boolean of comparison true only if key == ‘other’

Returns:

  • (Boolean)


24
25
26
# File 'app/models/language.rb', line 24

def is_other?
	key == 'other'
end

#to_sObject

Returns description



18
19
20
# File 'app/models/language.rb', line 18

def to_s
	description
end