Method: Togls::FeatureRepository#initialize
- Defined in:
- lib/togls/feature_repository.rb
#initialize(drivers) ⇒ FeatureRepository
Returns a new instance of FeatureRepository.
7 8 9 10 11 12 13 14 15 |
# File 'lib/togls/feature_repository.rb', line 7 def initialize(drivers) unless drivers.is_a?(Array) raise Togls::InvalidDriver, 'FeatureRepository requires a valid driver' end if drivers.empty? raise Togls::MissingDriver, 'FeatureRepository requires a driver' end @drivers = drivers end |