Module: DTK::DSL::YamlHelper
- Defined in:
- lib/dsl/yaml_helper.rb
Class Method Summary collapse
-
.generate(yaml_object) ⇒ Object
yaml_object can be a ::Hash or child of a ::Hash.
-
.parse(file_obj) ⇒ Object
Returns hash if succsefully parse; otherwise raises error.
Class Method Details
.generate(yaml_object) ⇒ Object
yaml_object can be a ::Hash or child of a ::Hash
31 32 33 |
# File 'lib/dsl/yaml_helper.rb', line 31 def self.generate(yaml_object) ::YAML.dump(convert_for_yaml_dump(yaml_object)) end |