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

Inherits:
Object
  • Object
show all
Defined in:
lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/cucumber-8.0.0/lib/cucumber/glue/snippet.rb

Instance Method Summary collapse

Constructor Details

#initialize(table) ⇒ DataTable

Returns a new instance of DataTable.



184
185
186
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/cucumber-8.0.0/lib/cucumber/glue/snippet.rb', line 184

def initialize(table)
  @table = table
end

Instance Method Details

#append_block_parameter_to(array) ⇒ Object



188
189
190
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/cucumber-8.0.0/lib/cucumber/glue/snippet.rb', line 188

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

#append_comment_to(string) ⇒ Object



192
193
194
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/cucumber-8.0.0/lib/cucumber/glue/snippet.rb', line 192

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