Class: Wizardry::Questions::Answer
- Inherits:
-
Object
- Object
- Wizardry::Questions::Answer
- Defined in:
- lib/wizardry/questions/answer.rb
Direct Known Subclasses
Date, EmailAddress, Hidden, LongAnswer, Radios, ShortAnswer, TelephoneNumber
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
- #extra_args ⇒ Object
- #extra_kwargs ⇒ Object
-
#initialize(name) ⇒ Answer
constructor
A new instance of Answer.
Constructor Details
#initialize(name) ⇒ Answer
Returns a new instance of Answer.
6 7 8 |
# File 'lib/wizardry/questions/answer.rb', line 6 def initialize(name) @name = name end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
4 5 6 |
# File 'lib/wizardry/questions/answer.rb', line 4 def name @name end |
Instance Method Details
#extra_args ⇒ Object
10 11 12 |
# File 'lib/wizardry/questions/answer.rb', line 10 def extra_args [] end |
#extra_kwargs ⇒ Object
14 15 16 |
# File 'lib/wizardry/questions/answer.rb', line 14 def extra_kwargs {} end |