Class: Kibutsu::FixtureFinder
- Inherits:
-
Object
- Object
- Kibutsu::FixtureFinder
- Defined in:
- lib/kibutsu/fixture_finder.rb
Overview
Finds fixture files with the right file extensions to load.
Instance Method Summary collapse
- #fixture_file_paths ⇒ Object
-
#initialize(fixtures_path) ⇒ FixtureFinder
constructor
A new instance of FixtureFinder.
Constructor Details
#initialize(fixtures_path) ⇒ FixtureFinder
Returns a new instance of FixtureFinder.
4 5 6 |
# File 'lib/kibutsu/fixture_finder.rb', line 4 def initialize(fixtures_path) @fixtures_path = fixtures_path end |
Instance Method Details
#fixture_file_paths ⇒ Object
8 9 10 |
# File 'lib/kibutsu/fixture_finder.rb', line 8 def fixture_file_paths Dir[File.join(fixtures_path, '**', '*.{yml,yml.erb}')] end |