Sha256: d690f708ce304386c46980f801748e4aab92a175485c92da45f18b56ef917a4e

Contents?: true

Size: 398 Bytes

Versions: 5

Compression:

Stored size: 398 Bytes

Contents

# coding: UTF-8

module Daddy
  module Cucumber
    module Table
      def normalize_table(ast_table)
        ret = []
      
        ast_table.raw.each do |ast_row|
          row = []
      
          ast_row.each do |ast_col|
            value = ast_col.gsub(/ /, '')
            row << value
          end
      
          ret << row
        end
      
        ret
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
daddy-0.0.8 lib/daddy/cucumber/table.rb
daddy-0.0.7 lib/daddy/cucumber/table.rb
daddy-0.0.6 lib/daddy/cucumber/table.rb
daddy-0.0.5 lib/daddy/cucumber/table.rb
daddy-0.0.4 lib/daddy/cucumber/table.rb