Sha256: 8ecc5844e20454ece78d18259f3745d03585d27e0cd03ebfa303893ad2413ee1
Contents?: true
Size: 639 Bytes
Versions: 14
Compression:
Stored size: 639 Bytes
Contents
module Gherkin module Formatter class StepPrinter def write_step(io, text_format, arg_format, step_name, arguments) unpacked_step_name = step_name.unpack("U*") text_start = 0 arguments.each do |arg| text_format.write_text(io, unpacked_step_name[text_start..arg.offset-1].pack("U*")) unless arg.offset == 0 arg_format.write_text(io, arg.val) text_start = arg.offset + arg.val.unpack("U*").length end text_format.write_text(io, unpacked_step_name[text_start..-1].pack("U*")) unless text_start == unpacked_step_name.length end end end end
Version data entries
14 entries across 14 versions & 2 rubygems