Sha256: 5eed794a8d5de8fc9d6e3830242dc1807715c7dc4a94743620bd481e0c6aa50f
Contents?: true
Size: 272 Bytes
Versions: 7
Compression:
Stored size: 272 Bytes
Contents
require 'json' module Helpers # From https://gist.github.com/ascendbruce/7070951 def valid_json?(json) begin JSON.parse(json) return true rescue Exception => e return false end end def trim(text) %r/\A\s+#{text}\s+\Z/ end end
Version data entries
7 entries across 7 versions & 1 rubygems