Class: Cucumber::RbSupport::Snippet::MultilineArgumentSnippet::DataTable

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

Instance Method Summary collapse

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