Sha256: e3b1a788a035ebee82d70a570bc45e4546aee3e4ec03d1b3521a9424369c0452
Contents?: true
Size: 511 Bytes
Versions: 1
Compression:
Stored size: 511 Bytes
Contents
require 'cucumber/cucumber_expressions/argument' module Cucumber module CucumberExpressions class ArgumentBuilder def self.build_arguments(regexp, text, parameters) m = regexp.match(text) return nil if m.nil? (1...m.length).map do |index| value = m[index] parameter = parameters[index-1] transformed_value = parameter.transform(value) Argument.new(m.offset(index)[0], value, transformed_value) end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
cucumber-expressions-2.0.0 | lib/cucumber/cucumber_expressions/argument_builder.rb |