Class: Cucumber::Tcl::StepDefinitions::ArgumentList

Inherits:
Object
  • Object
show all
Defined in:
lib/cucumber/tcl/step_definitions.rb

Instance Method Summary collapse

Constructor Details

#initialize(test_step) ⇒ ArgumentList

Returns a new instance of ArgumentList.



48
49
50
51
# File 'lib/cucumber/tcl/step_definitions.rb', line 48

def initialize(test_step)
  @arguments = [test_step.text]
  test_step.multiline_arg.describe_to self
end

Instance Method Details

#data_table(arg) ⇒ Object



57
58
59
# File 'lib/cucumber/tcl/step_definitions.rb', line 57

def data_table(arg)
  @arguments << DataTable.new(arg)
end

#doc_string(arg) ⇒ Object



53
54
55
# File 'lib/cucumber/tcl/step_definitions.rb', line 53

def doc_string(arg)
  @arguments << arg.content
end

#to_aObject



61
62
63
# File 'lib/cucumber/tcl/step_definitions.rb', line 61

def to_a
  @arguments
end