class HashMap::JSONAdapter
Public Class Methods
call(string)
click to toggle source
# File lib/hash_map/json_adapter.rb, line 4 def self.call(string) JSON[string] rescue JSON::ParserError fail InvalidJOSN, "[HashMap Error] using: `map` with invalid JSON, please check your json before mapping" end