Class: Cucumber::Glue::Snippet::MultilineArgumentSnippet::DataTable
- Inherits:
-
Object
- Object
- Cucumber::Glue::Snippet::MultilineArgumentSnippet::DataTable
- Defined in:
- lib/cucumber/glue/snippet.rb
Instance Method Summary collapse
- #append_block_parameter_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.
181 182 183 |
# File 'lib/cucumber/glue/snippet.rb', line 181 def initialize(table) @table = table end |
Instance Method Details
#append_block_parameter_to(array) ⇒ Object
185 186 187 |
# File 'lib/cucumber/glue/snippet.rb', line 185 def append_block_parameter_to(array) array << 'table' end |
#append_comment_to(string) ⇒ Object
189 190 191 |
# File 'lib/cucumber/glue/snippet.rb', line 189 def append_comment_to(string) string << " # table is a #{Cucumber::MultilineArgument::DataTable}\n" end |