Class: Barker::Question
- Inherits:
-
Object
- Object
- Barker::Question
- Includes:
- Validations::NumericalityOfId
- Defined in:
- lib/barker/question.rb
Instance Method Summary collapse
Methods included from Validations::NumericalityOfId
Instance Method Details
#_valid? ⇒ Object
6 |
# File 'lib/barker/question.rb', line 6 alias :_valid? :valid? |
#valid? ⇒ Boolean
7 8 9 |
# File 'lib/barker/question.rb', line 7 def valid? _valid? && answers.all?(&:valid?) end |