Class: Lookbook::YamlParser
- Inherits:
-
DataParser
- Object
- Service
- DataParser
- Lookbook::YamlParser
- Defined in:
- lib/lookbook/services/data/parsers/yaml_parser.rb
Instance Method Summary collapse
Methods inherited from DataParser
Methods inherited from Service
Constructor Details
This class inherits a constructor from Lookbook::DataParser
Instance Method Details
#parse(input) ⇒ Object
3 4 5 |
# File 'lib/lookbook/services/data/parsers/yaml_parser.rb', line 3 def parse(input) YAML.safe_load(input.to_s) end |