Sha256: 9206a4d8d92ee34123e3dec2e6987e0390e2621a037d9d5feec5f0ba633b8f0b
Contents?: true
Size: 411 Bytes
Versions: 1
Compression:
Stored size: 411 Bytes
Contents
module PGit module Bilateral class HandleBack def initialize(options) @parent_question = options.fetch(:parent_question) @response = options.fetch(:response) end def execute! if response_can_be_handled? @parent_question.reask! end end private def response_can_be_handled? @response.back? end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
pgit-1.0.0 | lib/pgit/bilateral/handle_back.rb |