Class: RSpec::Permutations::Parser::PermutationBlock
- Inherits:
-
Object
- Object
- RSpec::Permutations::Parser::PermutationBlock
- Defined in:
- lib/rspec/permutations/parser.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#permutations ⇒ Object
readonly
Returns the value of attribute permutations.
Instance Method Summary collapse
-
#initialize(name = nil, table) ⇒ PermutationBlock
constructor
A new instance of PermutationBlock.
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
#name ⇒ Object (readonly)
Returns the value of attribute name.
34 35 36 |
# File 'lib/rspec/permutations/parser.rb', line 34 def name @name end |
#permutations ⇒ Object (readonly)
Returns the value of attribute permutations.
34 35 36 |
# File 'lib/rspec/permutations/parser.rb', line 34 def permutations @permutations end |