Sha256: b58aa48c797db55f813395b9eb05559e0f438bea2d399ca2d944e0f97171efd2
Contents?: true
Size: 679 Bytes
Versions: 2
Compression:
Stored size: 679 Bytes
Contents
require 'cucumber/core/test/location' module Cucumber module Wire class StepDefinition attr_reader :id, :regexp_source, :location, :registry, :expression def initialize(connection, data, registry) @connection = connection @registry = registry @id = data['id'] @regexp_source = Regexp.new(data['regexp']) rescue data['regexp'] || "Unknown" @expression = registry.create_expression(@regexp_source) @location = Core::Test::Location.from_file_colon_line(data['source'] || "unknown:0") end def invoke(args) @connection.invoke(@id, args) end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
cucumber-wire-7.0.0 | lib/cucumber/wire/step_definition.rb |
cucumber-wire-6.2.1 | lib/cucumber/wire/step_definition.rb |