Class: PGit::Bilateral::HandleBack
- Inherits:
-
Object
- Object
- PGit::Bilateral::HandleBack
- Defined in:
- lib/pgit/bilateral/handle_back.rb
Instance Method Summary collapse
- #execute! ⇒ Object
-
#initialize(options) ⇒ HandleBack
constructor
A new instance of HandleBack.
Constructor Details
#initialize(options) ⇒ HandleBack
Returns a new instance of HandleBack.
4 5 6 7 |
# File 'lib/pgit/bilateral/handle_back.rb', line 4 def initialize() @parent_question = .fetch(:parent_question) @response = .fetch(:response) end |
Instance Method Details
#execute! ⇒ Object
9 10 11 12 13 |
# File 'lib/pgit/bilateral/handle_back.rb', line 9 def execute! if response_can_be_handled? @parent_question.reask! end end |