Class: Cucumber::Tcl::DataTable
- Inherits:
-
Object
- Object
- Cucumber::Tcl::DataTable
- Defined in:
- lib/cucumber/tcl/data_table.rb
Overview
Wraps the Cucumber DataTable so that when passed through to tcl, its string representation is easy to parse into a tcl list.
Instance Method Summary collapse
-
#initialize(original) ⇒ DataTable
constructor
A new instance of DataTable.
- #to_s ⇒ Object
Constructor Details
#initialize(original) ⇒ DataTable
Returns a new instance of DataTable.
7 8 9 |
# File 'lib/cucumber/tcl/data_table.rb', line 7 def initialize(original) @raw = original.raw end |
Instance Method Details
#to_s ⇒ Object
11 12 13 |
# File 'lib/cucumber/tcl/data_table.rb', line 11 def to_s to_tcl_list(@raw.map { |row| to_tcl_list(row) }) end |