Class: JsonRefs::Loader::Yaml
- Inherits:
-
Object
- Object
- JsonRefs::Loader::Yaml
- Defined in:
- lib/json_refs/loader.rb
Instance Method Summary collapse
Instance Method Details
#call(file) ⇒ Object
14 15 16 |
# File 'lib/json_refs/loader.rb', line 14 def call(file) RUBY_VERSION >= '3.1.0' ? YAML.unsafe_load(file) : YAML.load(file) end |