Sha256: 0172637abae6bd4f8c96e9ef8774874f73a85ae2f428d01ead954b483e87b923
Contents?: true
Size: 454 Bytes
Versions: 4
Compression:
Stored size: 454 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
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
makit-0.0.58 | lib/makit/yaml.rb |
makit-0.0.56 | lib/makit/yaml.rb |
makit-0.0.55 | lib/makit/yaml.rb |
makit-0.0.54 | lib/makit/yaml.rb |