Sha256: 1b43c11499655d71beaaa887e423a5a4ce6df6f7b78cba4ef51609155ab4df6d
Contents?: true
Size: 482 Bytes
Versions: 1
Compression:
Stored size: 482 Bytes
Contents
require 'cucumber/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] Cucumber::Gherkin::Formatter::Argument.new(offset, val) end else nil end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
cucumber-2.1.0 | lib/cucumber/rb_support/regexp_argument_matcher.rb |