Class: Survey::Option

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

Instance Method Summary collapse

Instance Method Details

#correct?Boolean

Returns:

  • (Boolean)

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

def correct?
  return (self.correct == true)
end

#to_sObject


20
21
22
# File 'app/models/survey/option.rb', line 20

def to_s
  return self.text
end