# File lib/cucumber/wire/protocol/requests.rb, line 9 def execute(name_to_match) @name_to_match = name_to_match request_params = { :name_to_match => name_to_match } super(request_params) end
# File lib/cucumber/wire/protocol/requests.rb, line 17 def handle_success(params) params.map do |raw_step_match| create_step_match(raw_step_match) end end
# File lib/cucumber/wire/protocol/requests.rb, line 27 def create_step_match(raw_step_match) step_definition = StepDefinition.new(@connection, raw_step_match) step_args = raw_step_match['args'].map do |raw_arg| StepArgument.new(raw_arg['pos'], raw_arg['val']) end step_match(step_definition, step_args) end
# File lib/cucumber/wire/protocol/requests.rb, line 35 def step_match(step_definition, step_args) StepMatch.new(step_definition, @name_to_match, step_args) end