Sha256: 7dc99ef894f77a0a11e44b691555497f1186bf31573b5239b367b510174d90ca

Contents?: true

Size: 329 Bytes

Versions: 1

Compression:

Stored size: 329 Bytes

Contents

module PGit
  class ResponseHandler
    attr_reader :question
    def execute!
      if response_can_be_handled?
        @question.ask do |response|
          @response_handlers.each {|handler| handler.new(options(response)).execute! }
        end
      end
    end

    def response_can_be_handled?
      true
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
pgit-1.0.0 lib/pgit/response_handler.rb