Class: RSpec::Parameterized::TableSyntax::Table::Row
- Inherits:
-
Object
- Object
- RSpec::Parameterized::TableSyntax::Table::Row
- Defined in:
- lib/rspec/parameterized/table_syntax/table.rb
Instance Method Summary collapse
- #add_param(param) ⇒ Object
-
#initialize(param) ⇒ Row
constructor
A new instance of Row.
- #to_a ⇒ Object
- #to_params ⇒ Object
Constructor Details
#initialize(param) ⇒ Row
Returns a new instance of Row.
32 33 34 |
# File 'lib/rspec/parameterized/table_syntax/table.rb', line 32 def initialize(param) @params = [param] end |
Instance Method Details
#add_param(param) ⇒ Object
36 37 38 |
# File 'lib/rspec/parameterized/table_syntax/table.rb', line 36 def add_param(param) @params << param end |
#to_a ⇒ Object
40 41 42 |
# File 'lib/rspec/parameterized/table_syntax/table.rb', line 40 def to_a @params end |
#to_params ⇒ Object
44 45 46 |
# File 'lib/rspec/parameterized/table_syntax/table.rb', line 44 def to_params [@params] end |