app/controllers/dependencys_controller.rb
## QuestionCollection provides a 2 dimensional array consisting of a question id
## and a question description.  The collection may be used in a view's select field.
##
## Its membership is determined by a base question.
## The base question is the one from which other questions in the collection are derived.
## E.g., in a dependency, the question that is shown or hidden based on the answers to others
## is the base question.  It shouldn't show up in the collection.
##
## Other questions may or may not show up in the collection depending on their eligibility.
##
## Some questions should have a question number and
## some should not. The QuestionCollection numbers questions that should be numbered
## and keeps track of the numbering.  If a question is numbered, the question number
## is included in the description, e.g. "3) What is your name?".  Otherwise,
## the description is just the question text, e.g. "Don't forget to use your middle initial".
##
## Incoming questions may be duck typed, but should respond to is_numbered? and is_eligible?
## messages.
QuestionCollection provides a 2 dimensional array consisting of a question id
and a question description.  The collection may be used in a view's select field.

Its membership is determined by a base question.
The base question is the one from which other questions in the collection are derived.
E.g., in a dependency, the question that is shown or hidden based on the answers to others
is the base question.  It shouldn't show up in the collection.

Other questions may or may not show up in the collection depending on their eligibility.

Some questions should have a question number and
some should not. The QuestionCollection numbers questions that should be numbered
and keeps track of the numbering.  If a question is numbered, the question number
is included in the description, e.g. "3) What is your name?".  Otherwise,
the description is just the question text, e.g. "Don't forget to use your middle initial".

Incoming questions may be duck typed, but should respond to is_numbered.
QuestionCollection provides a 2 dimensional array consisting of a question id and a question description . The collection may be used in a view ' s select field . Its membership is determined by a base question . The base question is the one from which other questions in the collection are derived . E . g . in a dependency the question that is shown or hidden based on the answers to others is the base question . It shouldn ' t show up in the collection . Other questions may or may not show up in the collection depending on their eligibility . Some questions should have a question number and some should not . The QuestionCollection numbers questions that should be numbered and keeps track of the numbering . If a question is numbered the question number is included in the description e . g . " 3 ) What is your name? " . Otherwise the description is just the question text e . g . " Don ' t forget to use your middle initial " . Incoming questions may be duck typed but should respond to is_numbered .
def add_question(question)
    _add_to_collection_if_eligible(question)
    _increment_question_number if question.is_numbered?
    return self
  end
def add_question ( question ) _add_to_collection_if_eligible ( question ) _increment_question_number if question . is_numbered? return self end
QuestionCollection provides a 2 dimensional array consisting of a question id
and a question description.
QuestionCollection provides a 2 dimensional array consisting of a question id and a question description .
question