Sha256: 798dba9115ef32736837c24d55dd7f45e0d37ba350f75e9ca6f16c4d17b76a5d
Contents?: true
Size: 479 Bytes
Versions: 4
Compression:
Stored size: 479 Bytes
Contents
# Named Yamler to make it clear it's not the YAML class. module Jets::Util class Yamler class << self def load(text) options = RUBY_VERSION.match?(/^3/) ? {aliases: true} : {} # Ruby 3.0.0 deprecates aliases: true YAML.load(text, **options) end def load_file(path) options = RUBY_VERSION.match?(/^3/) ? {aliases: true} : {} # Ruby 3.0.0 deprecates aliases: true YAML.load_file(path, **options) end end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
jets-6.0.5 | lib/jets/util/yamler.rb |
jets-6.0.4 | lib/jets/util/yamler.rb |
jets-6.0.3 | lib/jets/util/yamler.rb |
jets-6.0.2 | lib/jets/util/yamler.rb |