Class: ComplianceEngine::DataLoader::Yaml
- Inherits:
-
File
- Object
- ComplianceEngine::DataLoader
- File
- ComplianceEngine::DataLoader::Yaml
- Defined in:
- lib/compliance_engine/data_loader/yaml.rb
Overview
Load compliance engine data from a YAML file
Instance Attribute Summary
Attributes inherited from File
Attributes inherited from ComplianceEngine::DataLoader
Instance Method Summary collapse
-
#parse(content) ⇒ Hash
Parse YAML content into a Hash.
Methods inherited from File
Methods inherited from ComplianceEngine::DataLoader
Constructor Details
This class inherits a constructor from ComplianceEngine::DataLoader::File
Instance Method Details
#parse(content) ⇒ Hash
Parse YAML content into a Hash
14 15 16 |
# File 'lib/compliance_engine/data_loader/yaml.rb', line 14 def parse(content) YAML.safe_load(content) end |