Module: TTY::Shell::ResponseDelegation

Extended by:
Delegatable
Included in:
Question
Defined in:
lib/tty/shell/response_delegation.rb

Instance Method Summary collapse

Methods included from Delegatable

delegatable_method

Instance Method Details

#dispatch(response = Response.new(self, shell)) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Create response instance when question readed is invoked

Parameters:



47
48
49
# File 'lib/tty/shell/response_delegation.rb', line 47

def dispatch(response = Response.new(self, shell))
  @response ||= response
end