Exception: FlowChat::Interrupt::Base

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

Direct Known Subclasses

Prompt, Terminate

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(prompt) ⇒ Base

Returns a new instance of Base.



6
7
8
9
# File 'lib/flow_chat/interrupt.rb', line 6

def initialize(prompt)
  @prompt = prompt
  super
end

Instance Attribute Details

#promptObject (readonly)

Returns the value of attribute prompt.



4
5
6
# File 'lib/flow_chat/interrupt.rb', line 4

def prompt
  @prompt
end