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(*args) ⇒ ArgumentList
constructor
A new instance of ArgumentList.
- #to_a ⇒ Object
Constructor Details
#initialize(*args) ⇒ ArgumentList
Returns a new instance of ArgumentList.
33 34 35 |
# File 'lib/cucumber/tcl/step_definitions.rb', line 33 def initialize(*args) @arguments = args end |
Instance Method Details
#data_table(arg) ⇒ Object
41 42 43 |
# File 'lib/cucumber/tcl/step_definitions.rb', line 41 def data_table(arg) @arguments << DataTable.new(arg) end |
#doc_string(arg) ⇒ Object
37 38 39 |
# File 'lib/cucumber/tcl/step_definitions.rb', line 37 def doc_string(arg) @arguments << arg.content end |
#to_a ⇒ Object
45 46 47 |
# File 'lib/cucumber/tcl/step_definitions.rb', line 45 def to_a @arguments end |