Class: Cucumber::CucumberExpressions::CombinatorialGeneratedExpressionFactory
- Inherits:
-
Object
- Object
- Cucumber::CucumberExpressions::CombinatorialGeneratedExpressionFactory
- Defined in:
- lib/cucumber/cucumber_expressions/combinatorial_generated_expression_factory.rb
Instance Method Summary collapse
- #generate_expressions ⇒ Object
-
#initialize(expression_template, parameter_type_combinations) ⇒ CombinatorialGeneratedExpressionFactory
constructor
A new instance of CombinatorialGeneratedExpressionFactory.
Constructor Details
#initialize(expression_template, parameter_type_combinations) ⇒ CombinatorialGeneratedExpressionFactory
Returns a new instance of CombinatorialGeneratedExpressionFactory.
7 8 9 10 |
# File 'lib/cucumber/cucumber_expressions/combinatorial_generated_expression_factory.rb', line 7 def initialize(expression_template, parameter_type_combinations) @expression_template = expression_template @parameter_type_combinations = parameter_type_combinations end |
Instance Method Details
#generate_expressions ⇒ Object
12 13 14 15 16 |
# File 'lib/cucumber/cucumber_expressions/combinatorial_generated_expression_factory.rb', line 12 def generate_expressions generated_expressions = [] generate_permutations(generated_expressions, 0, []) generated_expressions end |