lib/interactive/question.rb in interactive-0.4.0 vs lib/interactive/question.rb in interactive-0.5.0
- old
+ new
@@ -1,7 +1,11 @@
+require 'forwardable'
+
module Interactive
class Question
+ extend Forwardable
attr_accessor :question, :options
+ def_delegators :@question_type, :reask!
def initialize(&block)
yield self
@options = Interactive::Options(Array(@options))