Sha256: 6c4827ea2820a8b457ed2fc41c944980cda44bdd9e40f56f8150a2b2ede3eb19
Contents?: true
Size: 352 Bytes
Versions: 13
Compression:
Stored size: 352 Bytes
Contents
# frozen_string_literal: true require 'base64' require 'json' module Opal::SourceMap::Map def to_h map end def to_json map.to_json end def as_json(*) to_h end def to_s map.to_s end def to_data_uri_comment "//# sourceMappingURL=data:application/json;base64,#{Base64.encode64(to_json).delete("\n")}" end end
Version data entries
13 entries across 13 versions & 1 rubygems