Sha256: 5c0253480ebbb61447153f8ddb6ccc19d14cb0d0086414bb7ee87a02e063be28
Contents?: true
Size: 267 Bytes
Versions: 1
Compression:
Stored size: 267 Bytes
Contents
# frozen_string_literal: true require 'json' class JSONConverter def to_json(_options = {}) hash = {} instance_variables.each do |var| key = var.to_s[1..] hash[key] = instance_variable_get(var) end JSON.pretty_generate(hash) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
danger-app_size_report-0.0.3 | lib/converter/helper/json_converter.rb |