class Locca::CollectionItemCondensedFormatter

Public Instance Methods

format_item(item) click to toggle source
# File lib/locca/collection_item_condensed_formatter.rb, line 27
def format_item(item)
    key = item.key.gsub(/([^\\])"/, "\\1\\\"")
    value = item.value.gsub(/([^\\])"/, "\\1\\\"")
    
    return "\"#{key}\" = \"#{value}\";"
end