Class: Eg::AllPairs

Inherits:
AllCombinations show all
Defined in:
lib/eg/all_pairs.rb

Defined Under Namespace

Classes: Item, Pair, Var

Constant Summary collapse

@@rank =
0

Constants inherited from Fit::Fixture

Fit::Fixture::GRAY, Fit::Fixture::GREEN, Fit::Fixture::RED, Fit::Fixture::YELLOW

Instance Attribute Summary collapse

Attributes inherited from Fit::Fixture

#args, #counts, #listener, #summary

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from AllCombinations

#do_table

Methods inherited from AllFiles

#do_row, #expand

Methods inherited from Fit::Fixture

camel, #check, #do_cell, #do_cells, #do_row, #do_rows, #do_table, #do_tables, #error, escape, #exception, #find_class, #fixture_name, #get_args_for_table, #get_linked_fixture_with_args, gray, #ignore, #info, #interpret_following_tables, #interpret_tables, label, metadata, #parse, #right, #total_errors, #totals, #wrong

Constructor Details

#initializeAllPairs

Returns a new instance of AllPairs.



15
16
17
18
19
20
21
# File 'lib/eg/all_pairs.rb', line 15

def initialize
  super
  @steps = 0
  @to_item = {}
  @vars = []
  @pairs = Set.new
end

Instance Attribute Details

#pairsObject

Returns the value of attribute pairs.



11
12
13
# File 'lib/eg/all_pairs.rb', line 11

def pairs
  @pairs
end

#stepsObject

Returns the value of attribute steps.



11
12
13
# File 'lib/eg/all_pairs.rb', line 11

def steps
  @steps
end

#to_itemObject

Returns the value of attribute to_item.



11
12
13
# File 'lib/eg/all_pairs.rb', line 11

def to_item
  @to_item
end

#varsObject

Returns the value of attribute vars.



11
12
13
# File 'lib/eg/all_pairs.rb', line 11

def vars
  @vars
end

Class Method Details

.rankObject



13
# File 'lib/eg/all_pairs.rb', line 13

def AllPairs.rank; @@rank; end