Module: Ruster::Util
Instance Method Summary collapse
Instance Method Details
#parse_info(info) ⇒ Object
2 3 4 5 6 7 8 9 10 |
# File 'lib/ruster/util.rb', line 2 def parse_info(info) {}.tap do |data| info.split("\r\n").each do |line| next if line[0] == "#" key, val = line.split(":") data[key.to_sym] = val end end end |