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



168
169
170
# File 'lib/cucumber/glue/snippet.rb', line 168

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

#doc_string(*_args) ⇒ Object



164
165
166
# File 'lib/cucumber/glue/snippet.rb', line 164

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

#resultObject



172
173
174
# File 'lib/cucumber/glue/snippet.rb', line 172

def result
  @result || None.new
end