Module: Daddy::Cucumber::Table
- Defined in:
- lib/daddy/cucumber/table.rb
Instance Method Summary collapse
Instance Method Details
#normalize_table(ast_table) ⇒ Object
6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
# File 'lib/daddy/cucumber/table.rb', line 6 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 |