lib/active_record_survey/node/question.rb
def remove_answer(answer_node)
			# A survey must either be passed or already present in self.node_maps
			if self.survey.nil?
				raise ArgumentError.new "A survey must be passed if ActiveRecordSurvey::Node::Question is not yet added to a survey"
			end

			if !answer_node.class.ancestors.include?(::ActiveRecordSurvey::Node::Answer)
				raise ArgumentError.new "::ActiveRecordSurvey::Node::Answer not passed"
			end

			# Cannot mix answer types
			# Check if not match existing - throw error
			if !self.answers.include?(answer_node)
				raise ArgumentError.new "Answer not linked to question"
			end

			answer_node.send(:remove_answer, self)
		end
def remove_answer(answer_node)
			# A survey must either be passed or already present in self.node_maps
			if self.survey.nil?
				raise ArgumentError.new "A survey must be passed if ActiveRecordSurvey::Node::Question is not yet added to a survey"
			end

			if !answer_node.class.ancestors.include?(::ActiveRecordSurvey::Node::Answer)
				raise ArgumentError.new "::ActiveRecordSurvey::Node::Answer not passed"
			end

			# Cannot mix answer types
			# Check if not match existing - throw error
			if !self.answers.include?(answer_node)
				raise ArgumentError.new "Answer not linked to question"
			end

			answer_node.send(:remove_answer, self)
		end
Removes an answer