Class: Pairwise::IPO

Inherits:
Object
  • Object
show all
Defined in:
lib/pairwise/ipo.rb,
lib/pairwise/ipo/vertical.rb,
lib/pairwise/ipo/horizontal.rb

Defined Under Namespace

Classes: Horizontal, Vertical

Constant Summary collapse

WILD_CARD =
'wild_card'

Instance Method Summary collapse

Constructor Details

#initialize(inputs, options = {}) ⇒ IPO

Returns a new instance of IPO.



8
9
10
11
# File 'lib/pairwise/ipo.rb', line 8

def initialize(inputs, options = {})
  @list_of_input_values = inputs
  @options = options
end

Instance Method Details

#buildObject



13
14
15
16
# File 'lib/pairwise/ipo.rb', line 13

def build
  input_combinations = PairCollection.new(@list_of_input_values[0], [@list_of_input_values[1]], 0)
  @list_of_input_values.size > 2 ? in_parameter_order_generation(input_combinations) : input_combinations.to_a
end