Object
# File lib/webmock/responses_sequence.rb, line 7 def initialize(responses) @times_to_repeat = 1 @responses = responses @current_position = 0 end
# File lib/webmock/responses_sequence.rb, line 13 def end? @times_to_repeat == 0 end
# File lib/webmock/responses_sequence.rb, line 17 def next_response if @times_to_repeat > 0 response = @responses[@current_position] increase_position response else @responses.last end end
[Validate]
Generated with the Darkfish Rdoc Generator 2.