Sha256: 70e6ae1bfb49888ea451a50909fa1f4162c2aff203b5f133cb915749b0b9ff38
Contents?: true
Size: 463 Bytes
Versions: 40
Compression:
Stored size: 463 Bytes
Contents
require 'gherkin/formatter/argument' module Cucumber module RbSupport class RegexpArgumentMatcher def self.arguments_from(regexp, step_name) match = regexp.match(step_name) if match n = 0 match.captures.map do |val| n += 1 offset = match.offset(n)[0] Gherkin::Formatter::Argument.new(offset, val) end else nil end end end end end
Version data entries
40 entries across 38 versions & 2 rubygems