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.



44
45
46
47
# File 'lib/cucumber/tcl/step_definitions.rb', line 44

def initialize(test_step)
  @arguments = [test_step.name]
  test_step.source.last.multiline_arg.describe_to self
end

Instance Method Details

#data_table(arg) ⇒ Object



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

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

#doc_string(arg) ⇒ Object



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

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

#to_aObject



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

def to_a
  @arguments
end