Class: Cucumber::Tcl::StepDefinitions::ArgumentList
- Inherits:
-
Object
- Object
- Cucumber::Tcl::StepDefinitions::ArgumentList
- Defined in:
- lib/cucumber/tcl/step_definitions.rb
Instance Method Summary collapse
- #data_table(arg) ⇒ Object
- #doc_string(arg) ⇒ Object
-
#initialize(test_step) ⇒ ArgumentList
constructor
A new instance of ArgumentList.
- #to_a ⇒ Object
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_a ⇒ Object
57 58 59 |
# File 'lib/cucumber/tcl/step_definitions.rb', line 57 def to_a @arguments end |