Sha256: ef6b130a99975d6e5e7ea948da9f193188fe3d8a50ac33efff7c93bed3485f37
Contents?: true
Size: 317 Bytes
Versions: 2
Compression:
Stored size: 317 Bytes
Contents
# frozen_string_literal: true module Fixturizer module Getters class Yaml < Template def retrieve result = nil data = read_file(@filename) result = YAML.load(data, symbolize_names: @options[:symbolize]) return result end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
fixturizer-0.4.4 | lib/fixturizer/getters/yaml.rb |
fixturizer-0.4.3 | lib/fixturizer/getters/yaml.rb |