Sha256: 885766fc2dc7c70cd0acfb1334604fc9c7100619a2978686d82fe4d70e6b49bb
Contents?: true
Size: 435 Bytes
Versions: 3
Compression:
Stored size: 435 Bytes
Contents
require 'yaml' # frozen_string_literal: true # This module provides classes for the Makit gem. module Makit class Yaml def self.validate_yaml(file_path) begin YAML.load_file(file_path) puts "#{file_path} is a valid YAML file." rescue Psych::SyntaxError => e raise"YAML validation failed for #{file_path}: #{e}" end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
makit-0.0.57 | lib/makit/yaml.rb |
makit-0.0.53 | lib/makit/yaml.rb |
makit-0.0.52 | lib/makit/yaml.rb |