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