class Mortadella::Vertical
Makes it easy to build DRY vertical Cucumber-compatible tables
Attributes
table[R]
Public Class Methods
new()
click to toggle source
# File lib/mortadella/vertical.rb, line 11 def initialize @table = [] end
Public Instance Methods
[]=(header, row)
click to toggle source
Adds the given row to the table
# File lib/mortadella/vertical.rb, line 17 def []= header, row @table << [header, row] end
empty?()
click to toggle source
# File lib/mortadella/vertical.rb, line 22 def empty? @table.empty? end