Sha256: 9e8d1aae68784859a6ff627864fe8ce6992d74287bee3b57d12476441345c918
Contents?: true
Size: 384 Bytes
Versions: 1
Compression:
Stored size: 384 Bytes
Contents
# typed: strict # frozen_string_literal: true require "json" module Vigies module Utilities module JSON extend T::Sig UntypedHash = Vigiles::Types::UntypedHash sig { params(text: String).returns(T.any(String, UntypedHash)) } def self.parse_benignly(text) ::JSON.parse(text) rescue StandardError text end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
vigiles-0.1.2 | lib/vigiles/utilities/json.rb |