Sha256: 77920493e7d7fa71d0935abe977a380d01b38a532be37461ed843005b51591ae

Contents?: true

Size: 434 Bytes

Versions: 98

Compression:

Stored size: 434 Bytes

Contents

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(/^[ \s]*(.*?)[ \s]*$/, '\1')
            row << value
          end
      
          ret << row
        end
      
        ret
      end
    end
  end
end

World(Daddy::Cucumber::Table)

Version data entries

98 entries across 98 versions & 1 rubygems

Version Path
daddy-0.9.19 lib/daddy/cucumber/helpers/table.rb
daddy-0.9.18 lib/daddy/cucumber/helpers/table.rb
daddy-0.9.17 lib/daddy/cucumber/helpers/table.rb
daddy-0.9.16 lib/daddy/cucumber/helpers/table.rb
daddy-0.9.15 lib/daddy/cucumber/helpers/table.rb
daddy-0.9.14 lib/daddy/cucumber/helpers/table.rb
daddy-0.9.13 lib/daddy/cucumber/helpers/table.rb
daddy-0.9.12 lib/daddy/cucumber/helpers/table.rb
daddy-0.9.11 lib/daddy/cucumber/helpers/table.rb
daddy-0.9.10 lib/daddy/cucumber/helpers/table.rb
daddy-0.9.9 lib/daddy/cucumber/helpers/table.rb
daddy-0.9.8 lib/daddy/cucumber/helpers/table.rb
daddy-0.9.7 lib/daddy/cucumber/helpers/table.rb
daddy-0.9.6 lib/daddy/cucumber/helpers/table.rb
daddy-0.9.5 lib/daddy/cucumber/helpers/table.rb
daddy-0.9.4 lib/daddy/cucumber/helpers/table.rb
daddy-0.9.3 lib/daddy/cucumber/helpers/table.rb
daddy-0.9.2 lib/daddy/cucumber/helpers/table.rb
daddy-0.9.1 lib/daddy/cucumber/helpers/table.rb
daddy-0.9.0 lib/daddy/cucumber/helpers/table.rb