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

Version Path
vim-jar-0.1.2.0001 bundler/ruby/1.8/gems/gherkin-2.2.9/lib/gherkin/formatter/step_printer.rb
vim-jar-0.1.2 bundler/ruby/1.8/gems/gherkin-2.2.9/lib/gherkin/formatter/step_printer.rb
vim-jar-0.1.1 bundler/ruby/1.8/gems/gherkin-2.2.9/lib/gherkin/formatter/step_printer.rb
vim-jar-0.1.0 bundler/ruby/1.8/gems/gherkin-2.2.9/lib/gherkin/formatter/step_printer.rb
gherkin-2.3.0 lib/gherkin/formatter/step_printer.rb
gherkin-2.3.0-x86-mswin32 lib/gherkin/formatter/step_printer.rb
gherkin-2.3.0-x86-mingw32 lib/gherkin/formatter/step_printer.rb
gherkin-2.3.0-universal-dotnet lib/gherkin/formatter/step_printer.rb
gherkin-2.3.0-java lib/gherkin/formatter/step_printer.rb
gherkin-2.2.9 lib/gherkin/formatter/step_printer.rb
gherkin-2.2.9-x86-mswin32 lib/gherkin/formatter/step_printer.rb
gherkin-2.2.9-x86-mingw32 lib/gherkin/formatter/step_printer.rb
gherkin-2.2.9-universal-dotnet lib/gherkin/formatter/step_printer.rb
gherkin-2.2.9-java lib/gherkin/formatter/step_printer.rb