Class: Cucumber::RbSupport::Snippet::MultilineArgumentSnippet::DataTable
- Defined in:
- lib/cucumber/rb_support/snippet.rb
Instance Method Summary collapse
- #append_block_argument_to(array) ⇒ Object
- #append_comment_to(string) ⇒ Object
-
#initialize(table) ⇒ DataTable
constructor
A new instance of DataTable.
Constructor Details
#initialize(table) ⇒ DataTable
Returns a new instance of DataTable.
126 127 128 |
# File 'lib/cucumber/rb_support/snippet.rb', line 126 def initialize(table) @table = table end |
Instance Method Details
#append_block_argument_to(array) ⇒ Object
130 131 132 |
# File 'lib/cucumber/rb_support/snippet.rb', line 130 def append_block_argument_to(array) array << 'table' end |
#append_comment_to(string) ⇒ Object
134 135 136 |
# File 'lib/cucumber/rb_support/snippet.rb', line 134 def append_comment_to(string) string << " # table is a #{@table.class.to_s}\n" end |