class SimpleChoice
Attributes
distractor[RW]
right[RW]
text[RW]
Public Class Methods
new(args)
click to toggle source
Calls superclass method
QuestionFather::new
# File lib/question/simpleChoice/base.rb, line 5 def initialize(args) super end
Public Instance Methods
to_s()
click to toggle source
# File lib/question/simpleChoice/base.rb, line 9 def to_s options = @distractor + [@right] options = options.shuffle puts "- Elige la pregunta correcta de la siguiente pregunta #{@text} ?" options.each {|o|} end