Class: Cucumber::Glue::Snippet::MultilineArgumentSnippet::DataTable

Inherits:
Object
  • Object
show all
Defined in:
lib/cucumber/glue/snippet.rb

Instance Method Summary collapse

Constructor Details

#initialize(table) ⇒ DataTable

Returns a new instance of DataTable.



186
187
188
# File 'lib/cucumber/glue/snippet.rb', line 186

def initialize(table)
  @table = table
end

Instance Method Details

#append_block_parameter_to(array) ⇒ Object



190
191
192
# File 'lib/cucumber/glue/snippet.rb', line 190

def append_block_parameter_to(array)
  array << 'table'
end

#append_comment_to(string) ⇒ Object



194
195
196
# File 'lib/cucumber/glue/snippet.rb', line 194

def append_comment_to(string)
  string << "  # table is a #{Cucumber::MultilineArgument::DataTable}\n"
end