Class: Wizardry::Questions::ShortAnswer
- Defined in:
- lib/wizardry/questions/short_answer.rb
Overview
Ask a question that can be answered with one line of text
Instance Attribute Summary
Attributes inherited from Answer
Instance Method Summary collapse
- #form_method ⇒ Object
-
#initialize(name) ⇒ ShortAnswer
constructor
A new instance of ShortAnswer.
Methods inherited from Answer
Constructor Details
#initialize(name) ⇒ ShortAnswer
Returns a new instance of ShortAnswer.
5 6 7 8 |
# File 'lib/wizardry/questions/short_answer.rb', line 5 def initialize(name) Rails.logger.debug("🧙 Adding short question '#{name}'") super(name) end |
Instance Method Details
#form_method ⇒ Object
10 11 12 |
# File 'lib/wizardry/questions/short_answer.rb', line 10 def form_method :govuk_text_field end |