Class: RSpec::Variants::Table::Row
- Inherits:
-
Object
- Object
- RSpec::Variants::Table::Row
- Defined in:
- lib/rspec/variants/table.rb
Instance Method Summary collapse
- #add_condition(condition) ⇒ Object
-
#initialize(condition) ⇒ Row
constructor
A new instance of Row.
- #to_a ⇒ Object
- #to_conditions ⇒ Object
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_a ⇒ Object
41 42 43 |
# File 'lib/rspec/variants/table.rb', line 41 def to_a @conditions end |
#to_conditions ⇒ Object
45 46 47 |
# File 'lib/rspec/variants/table.rb', line 45 def to_conditions [@conditions] end |