class Cucumber::StepArgument

text
Defines the location and value of a captured argument from the step

def self.arguments_from(regexp, step_name)

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]
      new(offset, val)
    end
  else
    nil
  end
end

def initialize(offset, val)

def initialize(offset, val)
  @offset, @val = offset, val
end