class Cucumber::Wire::StepArgument

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

Attributes

offset[R]

Public Class Methods

new(offset, val) click to toggle source
# File lib/cucumber/wire/step_argument.rb, line 11
def initialize(offset, val)
  @offset, @value = offset, val
end

Public Instance Methods

group() click to toggle source
# File lib/cucumber/wire/step_argument.rb, line 19
def group
  CucumberExpressions::Group.new(@value, @offset, @offset + @value.length, [])
end
value(_current_world) click to toggle source
# File lib/cucumber/wire/step_argument.rb, line 15
def value(_current_world)
  @value
end