Sha256: 8c46fccede824a80a4b8b5c827aa16944f959bf0158719d4b015175db7c72af7
Contents?: true
Size: 302 Bytes
Versions: 1
Compression:
Stored size: 302 Bytes
Contents
require 'json' require 'yajl' module Utils include Logging def true?(obj) obj.to_s.downcase == 'true' end def json_parse(string) JSON.parse(string) rescue JSON::ParserError => e log.fatal "json parse err: '''#{e.message}'''\n\t#{e.backtrace.join("\n\t")}" exit 1 end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
elastic_manager-0.1.3 | lib/elastic_manager/utils.rb |