Class: RSpec::Permutations::Parser::PermutationBlock

Inherits:
Object
  • Object
show all
Defined in:
lib/rspec/permutations/parser.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name = nil, table) ⇒ PermutationBlock

Returns a new instance of PermutationBlock.



29
30
31
32
# File 'lib/rspec/permutations/parser.rb', line 29

def initialize(name = nil, table)
  @name = name
  @permutations = Table.parse(table)
end

Instance Attribute Details

#nameObject (readonly)

Returns the value of attribute name.



34
35
36
# File 'lib/rspec/permutations/parser.rb', line 34

def name
  @name
end

#permutationsObject (readonly)

Returns the value of attribute permutations.



34
35
36
# File 'lib/rspec/permutations/parser.rb', line 34

def permutations
  @permutations
end