Exception: FlowChat::Interrupt::Prompt

Inherits:
Base
  • Object
show all
Defined in:
lib/flow_chat/interrupt.rb

Instance Attribute Summary collapse

Attributes inherited from Base

#prompt

Instance Method Summary collapse

Constructor Details

#initialize(*args, choices: nil) ⇒ Prompt

Returns a new instance of Prompt.



15
16
17
18
# File 'lib/flow_chat/interrupt.rb', line 15

def initialize(*args, choices: nil)
  @choices = choices
  super(*args)
end

Instance Attribute Details

#choicesObject (readonly)

Returns the value of attribute choices.



13
14
15
# File 'lib/flow_chat/interrupt.rb', line 13

def choices
  @choices
end