class Nx::Yaml
Constants
- VERSION
Public Class Methods
load(in_path, in_data = nil)
click to toggle source
# File lib/nx/yaml.rb, line 19 def self.load(in_path, in_data = nil) raw_content = File.read(in_path) str = in_data.nil? ? raw_content : ErbalT::render_from_hash(raw_content, in_data) YAML::load(str, symbolize_names: true) end