Class: RSpec::Variants::Table::Row

Inherits:
Object
  • Object
show all
Defined in:
lib/rspec/variants/table.rb

Instance Method Summary collapse

Constructor Details

#initialize(condition) ⇒ Row

Returns a new instance of Row.



33
34
35
# File 'lib/rspec/variants/table.rb', line 33

def initialize(condition)
  @conditions = [condition]
end

Instance Method Details

#add_condition(condition) ⇒ Object



37
38
39
# File 'lib/rspec/variants/table.rb', line 37

def add_condition(condition)
  @conditions << condition
end

#to_aObject



41
42
43
# File 'lib/rspec/variants/table.rb', line 41

def to_a
  @conditions
end

#to_conditionsObject



45
46
47
# File 'lib/rspec/variants/table.rb', line 45

def to_conditions
  [@conditions]
end