module Rackal::Internal::YamlFile

Public Instance Methods

yaml_content(filepath) click to toggle source
# File lib/rackal/internal/yaml_file.rb, line 7
def yaml_content(filepath)
  raise ArgumentError unless filepath.is_a?(String)

  YAML.safe_load(
    ERB.new(File.read(filepath)).result,
    aliases: true
  )
end