class ERBLint::FileLoader
Loads file from disk
def initialize(base_path)
def initialize(base_path) @base_path = base_path end
def read_content(filename)
def read_content(filename) path = File.expand_path(filename, base_path) File.read(path) end
def yaml(filename)
def yaml(filename) YAML.safe_load(read_content(filename), permitted_classes: [Regexp, Symbol], filename: filename) || {} end
def yaml(filename)
def yaml(filename) YAML.safe_load(read_content(filename), [Regexp, Symbol], [], false, filename) || {} end