Sha256: 82631b093c114c81ab10479956fd6a274d9cf074c424e79e1e2c78c237bbd6e1

Contents?: true

Size: 486 Bytes

Versions: 10

Compression:

Stored size: 486 Bytes

Contents

require 'turnip_formatter/printer'

module TurnipFormatter
  module Printer
    class StepExtraArgs
      class << self
        include TurnipFormatter::Printer

        def print_out(args)
          args.map do |arg|
            if arg.instance_of?(Turnip::Table)
              render_template(:step_outline, { table: arg.to_a })
            else
              render_template(:step_multiline, { lines: arg })
            end
          end.join
        end
      end
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
turnip_formatter-0.2.11 lib/turnip_formatter/printer/step_extra_args.rb
turnip_formatter-0.2.10 lib/turnip_formatter/printer/step_extra_args.rb
turnip_formatter-0.2.9 lib/turnip_formatter/printer/step_extra_args.rb
turnip_formatter-0.2.8 lib/turnip_formatter/printer/step_extra_args.rb
turnip_formatter-0.2.7 lib/turnip_formatter/printer/step_extra_args.rb
turnip_formatter-0.2.6 lib/turnip_formatter/printer/step_extra_args.rb
turnip_formatter-0.2.5 lib/turnip_formatter/printer/step_extra_args.rb
turnip_formatter-0.2.4 lib/turnip_formatter/printer/step_extra_args.rb
turnip_formatter-0.2.3 lib/turnip_formatter/printer/step_extra_args.rb
turnip_formatter-0.2.2 lib/turnip_formatter/printer/step_extra_args.rb