Method: Answer#<=>
- Defined in:
- lib/quiz/answer.rb
#<=>(other) ⇒ Object
Answer objects must be sorted according to their position inside the question
22 23 24 |
# File 'lib/quiz/answer.rb', line 22 def <=>(other) self.order <=> other.order end |