class QuestionFather
Attributes
dif[RW]
distractor[RW]
right[RW]
text[RW]
Public Class Methods
new(args)
click to toggle source
# File lib/question/questionFather/base.rb, line 6 def initialize(args) @text = args[:text] @right = args[:right] @distractor = args[:distractor] @dif = args[:dif] end
Public Instance Methods
<=>(other)
click to toggle source
# File lib/question/questionFather/base.rb, line 12 def <=>(other) self.dif <=> other.dif end