Class: QandA::Question::Text
- Inherits:
-
QandA::Question
- Object
- QandA::Question
- QandA::Question::Text
- Defined in:
- lib/question/text.rb
Instance Method Summary collapse
- #answer ⇒ Object
-
#initialize(message = '', text = '', default = nil) ⇒ Text
constructor
A new instance of Text.
Constructor Details
#initialize(message = '', text = '', default = nil) ⇒ Text
Returns a new instance of Text.
4 5 6 |
# File 'lib/question/text.rb', line 4 def initialize( = '', text = '', default = nil) super(message: , default: default) end |
Instance Method Details
#answer ⇒ Object
8 9 10 |
# File 'lib/question/text.rb', line 8 def answer @answer.to_s end |