Sha256: 706a4ca74fd3e007213b4811cd5665049827eea9ddc5e36ed861bc72f5c289dd
Contents?: true
Size: 345 Bytes
Versions: 2
Compression:
Stored size: 345 Bytes
Contents
module ConfCtl class HealthChecks::Systemd::PropertyList < Hash def self.from_enumerator(it) hash = new it.each do |line| stripped = line.strip eq = line.index('=') next if eq.nil? k = line[0..(eq - 1)] v = line[(eq + 1)..] hash[k] = v end hash end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
confctl-2.0.0 | lib/confctl/health_checks/systemd/property_list.rb |
confctl-1.0.0 | lib/confctl/health_checks/systemd/property_list.rb |