Class: ReleaseFeature::Repository::YamlRepository
- Inherits:
-
Object
- Object
- ReleaseFeature::Repository::YamlRepository
- Defined in:
- lib/release_feature/repository/yaml_repository.rb
Defined Under Namespace
Classes: AccessibleRange
Instance Method Summary collapse
- #features ⇒ ReleaseFeature::FeatureCollection
-
#initialize(path:) ⇒ YamlRepository
constructor
A new instance of YamlRepository.
Constructor Details
#initialize(path:) ⇒ YamlRepository
Returns a new instance of YamlRepository.
17 18 19 |
# File 'lib/release_feature/repository/yaml_repository.rb', line 17 def initialize(path:) @path = path end |
Instance Method Details
#features ⇒ ReleaseFeature::FeatureCollection
22 23 24 25 |
# File 'lib/release_feature/repository/yaml_repository.rb', line 22 def features data = YAML.load_file(@path) convert_to_feature_collection(data) end |