Class: RSpec::Permutations::Loader
- Inherits:
-
Object
- Object
- RSpec::Permutations::Loader
- Defined in:
- lib/rspec/permutations/loader.rb
Instance Method Summary collapse
-
#initialize(name) ⇒ Loader
constructor
A new instance of Loader.
- #permutations ⇒ Object
Constructor Details
#initialize(name) ⇒ Loader
Returns a new instance of Loader.
7 8 9 |
# File 'lib/rspec/permutations/loader.rb', line 7 def initialize(name) @name = name end |
Instance Method Details
#permutations ⇒ Object
11 12 13 14 |
# File 'lib/rspec/permutations/loader.rb', line 11 def permutations spec_file = RSpec::Permutations::SpecFinder.find RSpec::Permutations::Parser.new(spec_file).permutations(@name) end |