class Loom::Facts::TxtFileProvider
Public Instance Methods
convert_path_to_map(path)
click to toggle source
# File lib/loom/facts/fact_file_provider.rb, line 73 def convert_path_to_map(path) map = {} File.open(path, 'r') do |io| io.each_line do |line| next if line.match /^\s*#/ k,v = line.split "=" map[k] = v.strip end map end end