Module: YAML

Defined in:
lib/gitlab_exporter/cli.rb

Overview

rubocop:disable Style/Documentation

Class Method Summary collapse

Class Method Details

.safe_load_file(path, **options) ⇒ Object

Temporary Ruby 2 back-compat workaround.

This method only exists as of stdlib 3.0.0: ruby-doc.org/stdlib-3.0.0/libdoc/psych/rdoc/Psych.html



13
14
15
# File 'lib/gitlab_exporter/cli.rb', line 13

def self.safe_load_file(path, **options)
  YAML.safe_load(File.read(path), **options)
end