Class: Cucumber::RbSupport::Snippet::MultilineArgumentSnippet::Builder

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

Instance Method Summary collapse

Instance Method Details

#data_table(table, *args) ⇒ Object



128
129
130
# File 'lib/cucumber/rb_support/snippet.rb', line 128

def data_table(table, *args)
  @result = DataTable.new(table)
end

#doc_string(*args) ⇒ Object



124
125
126
# File 'lib/cucumber/rb_support/snippet.rb', line 124

def doc_string(*args)
  @result = DocString.new
end

#resultObject



132
133
134
# File 'lib/cucumber/rb_support/snippet.rb', line 132

def result
  @result || None.new
end