Module: Interrogative::InstanceMethods

Includes:
BaseMethods
Defined in:
lib/interrogative.rb

Overview

Methods tailored to the instance level.

These handle getting questions from the class level.

Instance Method Summary collapse

Methods included from BaseMethods

#postprocess_question, #question, #when_questioned

Instance Method Details

#questionsObject



73
74
75
76
77
78
# File 'lib/interrogative.rb', line 73

def questions
  qs = []
  qs |= self.class.questions if self.class.respond_to? :questions
  qs |= (@_questions||=[])
  qs
end