Sha256: ad54dabaeecf05481619fe9d64067ea867654e0833fbadef8c9df3cca677cdb5
Contents?: true
Size: 297 Bytes
Versions: 5
Compression:
Stored size: 297 Bytes
Contents
class String def to_plist to_json end end class Array def to_plist items = map { |item| "#{item.to_plist}" } "( #{items.join ","} )" end end class Hash def to_plist items = map { |key, value| "#{key.to_plist} = #{value.to_plist};\n" } "{ #{items.join} }" end end
Version data entries
5 entries across 5 versions & 1 rubygems