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.
147 148 149 |
# File 'lib/cucumber/rb_support/snippet.rb', line 147 def initialize(table) @table = table end |
Instance Method Details
#append_block_argument_to(array) ⇒ Object
151 152 153 |
# File 'lib/cucumber/rb_support/snippet.rb', line 151 def append_block_argument_to(array) array << 'table' end |
#append_comment_to(string) ⇒ Object
155 156 157 |
# File 'lib/cucumber/rb_support/snippet.rb', line 155 def append_comment_to(string) string << " # table is a #{Cucumber::MultilineArgument::DataTable.to_s}\n" end |