Class: RSpec::Parameterized::TableSyntax::Table::Row

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

Instance Method Summary collapse

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_aObject



40
41
42
# File 'lib/rspec/parameterized/table_syntax/table.rb', line 40

def to_a
  @params
end

#to_paramsObject



44
45
46
# File 'lib/rspec/parameterized/table_syntax/table.rb', line 44

def to_params
  [@params]
end