Sha256: 9f5ecbb296c9c066e45eade2dd92eefc288d4ad93a7cef4fe0864a0247f3b568
Contents?: true
Size: 674 Bytes
Versions: 8
Compression:
Stored size: 674 Bytes
Contents
require 'cucumber/core/test/location' module Cucumber module Wire class StepDefinition attr_reader :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
8 entries across 8 versions & 2 rubygems