Sha256: ddc1bf88584ce3876af00d5dfb9cc587b5940a5e3b8780c74254a7f6af20dc23
Contents?: true
Size: 462 Bytes
Versions: 26
Compression:
Stored size: 462 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
26 entries across 24 versions & 8 rubygems