Exception: FlowChat::Interrupt::Prompt
- Defined in:
- lib/flow_chat/interrupt.rb
Overview
standard:enable Lint/InheritException
Instance Attribute Summary collapse
-
#choices ⇒ Object
readonly
Returns the value of attribute choices.
Attributes inherited from Base
Instance Method Summary collapse
-
#initialize(prompt, choices: nil, media: nil) ⇒ Prompt
constructor
A new instance of Prompt.
Constructor Details
#initialize(prompt, choices: nil, media: nil) ⇒ Prompt
Returns a new instance of Prompt.
18 19 20 21 |
# File 'lib/flow_chat/interrupt.rb', line 18 def initialize(prompt, choices: nil, media: nil) @choices = choices super(prompt, media: media) end |
Instance Attribute Details
#choices ⇒ Object (readonly)
Returns the value of attribute choices.
16 17 18 |
# File 'lib/flow_chat/interrupt.rb', line 16 def choices @choices end |