Class: Cucumber::Glue::Snippet::MultilineArgumentSnippet::Builder

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

Instance Method Summary collapse

Instance Method Details

#data_table(table, *_args) ⇒ Object



162
163
164
# File 'lib/cucumber/glue/snippet.rb', line 162

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

#doc_string(*_args) ⇒ Object



158
159
160
# File 'lib/cucumber/glue/snippet.rb', line 158

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

#resultObject



166
167
168
# File 'lib/cucumber/glue/snippet.rb', line 166

def result
  @result || None.new
end