class CucumberJunitToJson::Models::Rows

Abstract representation of a cucumber step table rows attribute

Attributes

cells[RW]
line[RW]

Public Class Methods

new(cells, line = 0) click to toggle source
# File lib/cucumber_junit_to_json/models/rows.rb, line 10
def initialize(cells, line = 0)
  @cells = cells
  @line = line
end
parse(data) click to toggle source
# File lib/cucumber_junit_to_json/models/rows.rb, line 15
def self.parse(data)
  rows = []
  data.each do |c|
    rows.push(Rows.new(c))
  end
  rows
end