Module: TTY::Shell::ResponseDelegation
Instance Method Summary collapse
-
#dispatch(response = Response.new(self, shell)) ⇒ Object
private
Create response instance when question readed is invoked.
Methods included from Delegatable
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
49 50 51 |
# File 'lib/tty/shell/response_delegation.rb', line 49 def dispatch(response = Response.new(self, shell)) @response ||= response end |