Class: RSpec::Permutations::Loader

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

Instance Method Summary collapse

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

#permutationsObject



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