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



107
108
109
# File 'lib/cucumber/rb_support/snippet.rb', line 107

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

#doc_string(*args) ⇒ Object



103
104
105
# File 'lib/cucumber/rb_support/snippet.rb', line 103

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

#resultObject



111
112
113
# File 'lib/cucumber/rb_support/snippet.rb', line 111

def result
  @result || None.new
end